I have some global variables which i was initially defining in my page.tpl.php. But when I try and access these variables from my module file functions they all appear unset (I am using global $myvar at the top of my functions). I tried defining the variables in settings.php as well but still to no avail! Am i doing something wrong here? I need the variables in many different functions including node_validate and node_submit
If this should be posted somewhere else, please let me know.
If a user navigates to a node which is not accessible, the theme of the node that can't be accessed is nonetheless displayed. I would prefer if the content area which displays "You are not authorized to access this page." was displayed either in the theme of the prior node or in the default theme. But displaying the theme associated with the inaccessible node leads to strange results (for example, blocks that should not be displayed are displayed).
i did below changes to settings.php as described in http://drupal.org/node/23708. however, the first one (node->show) is working whereas taxonomy/term is not. am i doing something wrong?
hi
i try to localize Buddylist module. there is a po file but that does not contain all the strings to be translated. so i started to translate within buddylist.module file itself. an example
function buddylist_translation() {
return array('%buddy' => t('buddy'),
when i replace buddy in t('buddy') with non-english chars it start to produce weird chars like ? / > . how i can solve this?