Can't get it to work in Drupal 5.0

vojnar - October 17, 2008 - 18:59
Project:Block Theme
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I'm not sure if drupal 5.0 is compatible with this module.
If it is then I'm not sure why I cant make this to work.

The number 5. is absolutely unclear.
a.)There is no such function in template.php :"[yourtheme]_block($block)" in garland.
b.) [yourtheme] -> what does this stand for? The name of the custom theme or the name of the custom block?

I tried with both and it did not work. My custom theme name is "sajat" and my custom block name is "right" . I guess it stands for the block name since it disappeared the block dissapeared when I used the theme name but then I kindly suggest you to change it to

function superblock _block($block){

if (module_exists('blocktheme')) {
  if ( $custom_theme = blocktheme_get_theme($block) ) {
    return _phptemplate_callback($custom_theme,array('block' => $block));
  }
}

return phptemplate_block($block);
}

so it will became clear.
Any suggestion why it does not work?

Thanks,
Gabor

 
 

Drupal is a registered trademark of Dries Buytaert.