[development] Error defining parameters in hook_theme

Earl Miles merlin at logrus.com
Mon Dec 7 23:28:28 UTC 2009


Steve Edwards wrote:
> In a module I'm creating, I'm embedding the subqueue edit form from the 
> Nodequeue module, and I need to replace the title with a text field and 
> use a custom theme function (overriding theme_form_element) for the 
> textfield.  I've registered my theme function with hook_theme:
> 
> /**
> * Implementation of hook_theme
> */
> function mymodule_theme() {
>  return array(
>    'mymodule_subqueue_title' => array(
>      'arguments' => array($element => NULL, $value => NULL),
>    ),
>  );
> }

The #theme command only sends one argument, the $element, There is no 
$value. (Not even a Zuul)


More information about the development mailing list