You are here

function example_theme in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_theme()

Implementation of hook_theme().

Use case 1: returns array directly.

File

coder_upgrade/tests/old/samples/example.module, line 1332

Code

function example_theme() {
  return array(
    'example_node_list' => array(
      'arguments' => array(
        'items' => NULL,
        'title' => NULL,
      ),
    ),
    'example_node_search_admin' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'example_user_list' => array(
      'arguments' => array(
        'users' => NULL,
        'title' => NULL,
      ),
    ),
    'example_user_list_2' => array(
      'arguments' => array(
        'users1' => NULL,
        'title1' => NULL,
        'users2' => NULL,
        'title2' => NULL,
      ),
    ),
    'example_coder_review_warning_msg' => array(
      'arguments' => array(
        'error' => NULL,
      ),
    ),
    'example_coder_review_table_cols' => array(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'example_phpapi' => array(
      'arguments' => array(
        'function' => NULL,
      ),
    ),
    // No arguments.
    'example_missing' => array(),
    // Why would you define this with empty arguments?
    'example_empty' => array(
      'arguments' => array(),
    ),
  );
}