You are here

function andromeda_slideshow_theme in Andromeda Slideshow 7

Same name and namespace in other branches
  1. 7.2 andromeda_slideshow.module \andromeda_slideshow_theme()

Implements hook_theme().

File

./andromeda_slideshow.module, line 146
Slideshow for the Andromeda (http://drupal.org/project/andromeda) Theme

Code

function andromeda_slideshow_theme() {
  $themes = array(
    'andromeda_slideshow_manage_form_table' => array(
      'render element' => 'form',
      'file' => 'andromeda_slideshow.pages.inc',
    ),
    'andromeda_slideshow' => array(
      'variables' => array(
        'slideshow' => NULL,
        'images' => NULL,
      ),
      'template' => 'templates/andromeda-slideshow',
      'file' => 'andromeda_slideshow.pages.inc',
    ),
  );

  //add custom slideshow supports
  $types = andromeda_slideshow_get_types();
  foreach ($types as $key => $type) {
    $theme = 'andromeda_slideshow_' . $key;
    $themes[$theme] = array(
      'variables' => array(
        'slideshow' => NULL,
        'images' => NULL,
      ),
      'template' => $type['template'],
      'path' => drupal_get_path('module', $type['module']),
    );
  }
  return $themes;
}