You are here

function simpleads_theme in SimpleAds 7

Same name and namespace in other branches
  1. 8 simpleads.module \simpleads_theme()
  2. 7.2 includes/theme.inc \simpleads_theme()

Implements hook_theme().

File

includes/simpleads.theme.inc, line 11
SimpleAds Theme.

Code

function simpleads_theme($existing, $type, $theme, $path) {
  return array(
    'simpleads_block' => array(
      'variables' => array(
        'tid' => NULL,
        'prefix' => NULL,
        'ads_limit' => NULL,
        'ads_page' => NULL,
        'ads_width' => NULL,
        'ads_height' => NULL,
      ),
      'path' => $path . '/templates',
      'template' => 'simpleads_block',
      'preprocess functions' => array(
        'simpleads_preprocess_simpleads_block',
      ),
    ),
    'simpleads_ajax_call' => array(
      'variables' => array(
        'content' => NULL,
        'total_ads' => NULL,
        'tid' => NULL,
        'settings' => NULL,
      ),
      'path' => $path . '/templates',
      'template' => 'simpleads_ajax_call',
    ),
    'simpleads_img_element' => array(
      'variables' => array(
        'ad' => NULL,
        'settings' => NULL,
        'css_class' => NULL,
      ),
      'path' => $path . '/templates',
      'template' => 'simpleads_img_element',
      'preprocess functions' => array(
        'simpleads_preprocess_simpleads_img_element',
      ),
    ),
    'simpleads_text_element' => array(
      'variables' => array(
        'ad' => NULL,
        'settings' => NULL,
        'css_class' => NULL,
      ),
      'path' => $path . '/templates',
      'template' => 'simpleads_text_element',
      'preprocess functions' => array(
        'simpleads_preprocess_simpleads_text_element',
      ),
    ),
    'simpleads_flash_element' => array(
      'variables' => array(
        'ad' => NULL,
        'settings' => NULL,
        'css_class' => NULL,
      ),
      'path' => $path . '/templates',
      'template' => 'simpleads_flash_element',
      'preprocess functions' => array(
        'simpleads_preprocess_simpleads_flash_element',
      ),
    ),
    'simpleads_filter_dashboard' => array(
      'variables' => array(
        'form' => NULL,
      ),
      'path' => $path . '/templates',
      'template' => 'simpleads_filter_dashboard',
    ),
  );
}