You are here

function mostpopular_theme in Drupal Most Popular 7

Same name and namespace in other branches
  1. 6 mostpopular.module \mostpopular_theme()

Implements hook_theme().

File

./mostpopular.module, line 172
The main file for the Most Popular module.

Code

function mostpopular_theme($existing, $type, $theme, $path) {
  $themes = array(
    'mostpopular_admin_blocks_table' => array(
      'render element' => 'element',
      'file' => 'mostpopular.blocks.inc',
    ),
    'mostpopular_admin_services_table' => array(
      'render element' => 'element',
      'file' => 'mostpopular.services.inc',
    ),
    'mostpopular_service_status' => array(
      'variables' => array(
        'status' => 0,
      ),
      'file' => 'mostpopular.services.inc',
    ),
    'mostpopular_admin_intervals_table' => array(
      'render element' => 'element',
      'file' => 'mostpopular.intervals.inc',
    ),
    // Theme for the block
    'mostpopular_block' => array(
      'variables' => array(
        'services' => array(),
        'intervals' => array(),
        'bid' => 0,
      ),
      'file' => 'mostpopular.theme.inc',
      'template' => 'templates/mostpopular-block',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_block',
      ),
    ),
    // Themes for the service tabs
    'mostpopular_services' => array(
      'variables' => array(
        'services' => array(),
      ),
      'file' => 'mostpopular.theme.inc',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_services',
      ),
    ),
    'mostpopular_service' => array(
      'variables' => array(
        'service' => array(),
      ),
      'file' => 'mostpopular.theme.inc',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_service',
      ),
    ),
    // Themes for the intervals tabs
    'mostpopular_intervals' => array(
      'variables' => array(
        'intervals' => array(),
      ),
      'file' => 'mostpopular.theme.inc',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_intervals',
      ),
    ),
    'mostpopular_interval' => array(
      'variables' => array(
        'interval' => array(),
      ),
      'file' => 'mostpopular.theme.inc',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_interval',
      ),
    ),
    // Themes for the most popular result items
    'mostpopular_items' => array(
      'variables' => array(
        'items' => array(),
      ),
      'file' => 'mostpopular.theme.inc',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_items',
      ),
    ),
    'mostpopular_item' => array(
      'variables' => array(
        'item' => null,
      ),
      'file' => 'mostpopular.theme.inc',
      'template' => 'templates/mostpopular-item',
      'preprocess functions' => array(
        'template_preprocess',
        'template_preprocess_mostpopular_item',
      ),
    ),
    'mostpopular_items__none' => array(
      'variables' => array(),
      'file' => 'mostpopular.theme.inc',
    ),
  );
  return $themes;
}