7 - drupal overriding theme fucntions gettting notices
Posted
by
welovedesign
on Stack Overflow
See other posts from Stack Overflow
or by welovedesign
Published on 2012-06-26T15:11:47Z
Indexed on
2012/06/26
15:15 UTC
Read the original article
Hit count: 143
So I am overriding a theme function by putting the contents in my template.php module, the problem is that it it throwing up loads of undefined index notices because there are lots of functions that are defined in the module. How can I define these in the template.php file and prevent the notices.
Note: I know i can turn them off
'uc_cart_block_content' => array(
'variables' => array(
'help_text' => NULL,
'items' => NULL,
'item_count' => NULL,
'item_text' => NULL,
'total' => NULL,
'summary_links' => NULL,
'collapsed' => TRUE,
),
'file' => 'uc_cart.theme.inc',
),
© Stack Overflow or respective owner