1 theme_test.module theme_test_theme($existing, $type, $theme, $path)

Implements hook_theme().

File

core/modules/simpletest/tests/theme_test.module, line 6

Code

function theme_test_theme($existing, $type, $theme, $path) {
  $base = array(
    'file' => 'theme_test.theme.inc',
  );

  $items['theme_test'] = array(
    'variables' => array('foo' => ''),
  ) + $base;
  $items['theme_test_template_test'] = array(
    'template' => 'theme_test.template_test',
  ) + $base;
  $items['theme_test_template_test_2'] = array(
    'template' => 'theme_test.template_test',
  ) + $base;
  $items['theme_test_foo'] = array(
    'variables' => array('foo' => NULL),
  ) + $base;

  return $items;
}