File: theme_test.inc

package info (click to toggle)
drupal7 7.32-1%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 18,804 kB
  • sloc: php: 43,487; pascal: 40,880; sh: 1,635; xml: 466; makefile: 21; sql: 1
file content (15 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * Returns HTML for the 'theme_test' theme hook used by tests.
 */
function theme_theme_test($variables) {
  return 'Theme hook implementor=theme_theme_test(). Foo=' . $variables['foo'];
}

/**
 * Preprocesses variables for theme_theme_test().
 */
function template_preprocess_theme_test(&$variables) {
  $variables['foo'] = 'template_preprocess_theme_test';
}