viewing paste Unknown #31949 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
<?php
 
/**
 * Implements hook_theme().
 */
function cutanea_slides_theme($existing, $type, $theme, $path) {
  list($bio_array, $title_array) = cutanea_slides_get_bio_array();
  list($news_array, $news_title_array, $footer_array) = cutanea_slides_get_news_array();
  $core_title_array = cutanea_slides_load_slide(7);
  return array(
    'leadership_slide' => array(
      'template' => 'leadership_slide',
      'variables' => array('bio_array' => $bio_array,'title_array' => $title_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'leadership_slide_popup' => array(
      'template' => 'leadership_slide_popup',
      'variables' => array('bio_array' => $bio_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'whatsnew_news_slide' => array(
      'template' => 'whatsnew_news_slide',
      'variables' => array('news_array' => $news_array,'title_array' => $news_title_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'recent_news' => array(
      'template' => 'recent_news',
      'variables' => array('news_array' => $news_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'core_purpose' => array(
      'template' => 'core_purpose',
      'variables' => array('title_array' => $core_title_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'slide7_board_popup' => array(
      'template' => 'slide7_board_popup',
      'variables' => array('title_array' => $core_title_array['popup']),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'slide9_address_and_policy' => array(
      'template' => 'slide9_address_and_policy',
      'variables' => array('content' => $footer_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'slide9_policy_popup' => array(
      'template' => 'slide9_policy_popup',
      'variables' => array('content' => $footer_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
    'mobile' => array(
      'template' => 'mobile',
      'variables' => array('content' => $footer_array),
      'path' => drupal_get_path('module', 'cutanea_slides') . '/templates',
    ),
  );
}
 
Viewed 997 times, submitted by Guest.