You are here

function phptemplate_block in Drupal 5

Same name and namespace in other branches
  1. 4 themes/engines/phptemplate/phptemplate.engine \phptemplate_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);
}