hook

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
grone2013's picture

función de apagado

Saludos compañeros y de antemano gracias por la ayuda.

Necesito entender drupal_register_shutdown_function() en Drupal 7. Si pueden plantear un ejemplo concreto les agradezco.

De nuevo gracias por la ayuda.

Read more
jonn59's picture

Agregar opcion al menu generado por el book

Hola a todos, estoy haciendo uso del modulo Book para generar libros de contenido, por el momento estoy haciendo uso del modulo Lexicon para generar unos glosarios de los books. El problema se me presenta al querer generar una opción mas en el menú del libro para que apunte a mi glosario, alguien sabe si hay algún hook que me permita modificar el menú que genera los Books y agregar mi opción de glosario.

Saludos

Read more
carcheky's picture

Poner un botón que cree un nuevo nodo con el contenido de una variable

Buenas noches a todos!! ;-)

Me gustaría hacerles una pregunta, que debería ser fácil para quien sepa algo de programación en drupal :D

quiero poner un botón en la cabecera de una vista, que al pulsarlo coja la variable
$...['content']['system_main']['main']['#markup']
(la que contiene el código generado por la vista)
y la inserte en un campo html de un nuevo nodo.

No debe ser muy dificil, no?
Pues no doy con la clave...

Read more
ThomasKaemmerling's picture

Hook-Konzept | Drupal

Das Hook-System ermöglicht es mit dem Drupal-Core und anderen Modulen zu interagieren. Das Drupal Modul System basiert auf dem „hooks“ Konzept. Ein Hook erlaubt es sich in den Drupal-Core mit PHP Funktionen, in einem eigenen Modul einzuhängen. Die Funktion wird dann durch den Drupal-Core zu einem definierten Zeitpunkt aufgerufen und ausgeführt werden.

weiter lesen

Read more
jmolivas's picture

Adding code to preprocess-html.inc

I am trying to add the taxonomy term-tid on current node as class to the body element using the preprocess-html.inc with no luck any help will be appreciated.

As explained on README.txt I added the preprocess-html.inc file also the code inside a function named MYTHEMENAMEHERE_alpha_preprocess_html

I already got the term-id also the code for adding new element to $variables['body_classes'][] = drupal_html_class( "taxonomy-term-". $taxonomy_term );

I can see the value if echo array $variables['body_classes'] but no class shown on body attribute when page rendered.

Best Regards

Read more
DrupalCuckoo's picture

hook_form_alter() and content types

hi,

I'm bulding a custom module with the purpose to alter the "edit form" of every content type (i.e. the edit form of the blog content type located at admin/content/node-type/blog).

Creating new form elements to extend the standard form with my custom form elements wasn't a problem at all. When I enable my module at admin/build/modules I can see my custom form elements and everything seems to work. Here's what my ".module" file looks like:

<?php
// $Id$

/**
* Implementation of hook_form_alter().
*/

Read more
Shin-gdo_J's picture

Drupal 実践プログラミング徹底入門

さっき2ちゃんねるで知ったのですがf^_^;

僕もお世話になっているあの GIM さんの
●Drupal Pro Book CMSカスタマイズ&デザインガイド
http://www.amazon.co.jp/Drupal-Pro-Book-CMS%E3%82%AB%E3%82%B9%E3%82%BF%E...
につづく2冊目の日本語の Drupal 本が出るようですね。

●Drupal 実践プログラミング徹底入門

Read more
Subscribe with RSS Syndicate content