why I can't call garland_theme() in template.php for drupal6.5
panhongwei - October 21, 2008 - 01:51
template.php
.
.
.
////////////////drupal6.5///////////////////////
function garland_theme() {
print_r( 'test word' ); // not work why ? so user_login_block not work too.
return array(
'user_login_block' => array(
'template' => 'user_login',
'arguments' => array('form' => NULL),
),
// other theme registration code...
);
}
function garland_preprocess_user_login_block(&$variables) {
$variables['intro_text'] = t('This is my awesome login form');
$variables['rendered'] = drupal_render($variables['form']);
}
