phptemplate_block

5 phptemplate.engine phptemplate_block($block)

Prepare the values passed to the theme_block function to be passed into a pluggable template engine. Uses block properties to generate a series of template file suggestions. If none are found, the default block.tpl.php is used.

File

themes/engines/phptemplate/phptemplate.engine, line 341
Handles integration of templates written in pure php with the Drupal theme system.

Code

function phptemplate_block($block) {
  $suggestions[] = 'block';
  $suggestions[] = 'block-' . $block->region;
  $suggestions[] = 'block-' . $block->module;
  $suggestions[] = 'block-' . $block->module . '-' . $block->delta;

  return _phptemplate_callback('block', array('block' => $block), $suggestions);
}
Login or register to post comments