hook

Events happening in the community are now at Drupal community events on www.drupal.org.

función de apagado

Posted by grone2013 on February 3, 2016 at 9:00pm

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
1 comment Categories: ,

Agregar opcion al menu generado por el book

Posted by jonn59 on May 7, 2013 at 7:00pm

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
2 comments Categories: , ,

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

Posted by carcheky on November 22, 2012 at 8:23pm

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
Categories: , , , ,

Hook-Konzept | Drupal

Posted by ThomasKaemmerling on February 23, 2012 at 12:32pm

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
Categories: , ,

Adding code to preprocess-html.inc

Posted by jmolivas on October 5, 2011 at 7:37pm

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

hook_form_alter() and content types

Posted by DrupalCuckoo on March 18, 2010 at 12:38pm

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
7 comments Categories: , , ,

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

Posted by Shin-gdo_J on May 22, 2009 at 5:28pm

さっき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

AltStyle によって変換されたページ (->オリジナル) /