You are here

function block_theme in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/block/block.module \block_theme()
  2. 6 modules/block/block.module \block_theme()
  3. 9 core/modules/block/block.module \block_theme()

Implements hook_theme().

File

modules/block/block.module, line 78
Controls the visual building blocks a page is constructed with.

Code

function block_theme() {
  return array(
    'block' => array(
      'render element' => 'elements',
      'template' => 'block',
    ),
    'block_admin_display_form' => array(
      'template' => 'block-admin-display-form',
      'file' => 'block.admin.inc',
      'render element' => 'form',
    ),
  );
}