You are here

function quotes_theme in Quotes 7

Same name and namespace in other branches
  1. 6 quotes.module \quotes_theme()

Implements hook_theme().

File

./quotes.module, line 1521
The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.

Code

function quotes_theme() {
  $theme_hooks = array(
    'quotes_user_form' => array(
      'render element' => 'form',
      'file' => 'quotes.user.inc',
    ),
    'quotes_page' => array(
      'variables' => array(
        'uid' => NULL,
        'account' => NULL,
        'user' => NULL,
      ),
      'template' => 'quotes',
    ),
    'quotes_author' => array(
      'variables' => array(
        'node' => NULL,
        'format' => NULL,
      ),
    ),
    'quotes_citation' => array(
      'variables' => array(
        'node' => NULL,
        'format' => NULL,
      ),
    ),
    'quotes_block' => array(
      'variables' => array(
        'block' => NULL,
        'nodes' => NULL,
      ),
      'template' => 'quotes-block',
    ),
  );

  // The theme system automatically discovers the theme's functions and
  // templates that implement more targeted "suggestions" of generic theme
  // hooks. But suggestions implemented by a module must be explicitly
  // registered.
  $theme_hooks += array(
    'quotes_block__block' => array(
      'template' => 'quotes_block--block',
      'variables' => $theme_hooks['quotes_block']['variables'],
    ),
  );
  return $theme_hooks;
}