| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * Views Slideshow: SingleFrame is typically used for field views. 6 */ 7 8 /** 9 * Implements hook_init(). 10 */ 11 function views_slideshow_singleframe_init() { 12 // If the jQ module is installed, use that to add the jQuery Cycle plugin. 13 // This allows different versions of the plugin to be used. 14 $js = FALSE; 15 if (module_exists('jq')) { 16 $loaded_plugins = jq_plugins(); 17 if (!empty($loaded_plugins['cycle'])) { 18 $js = jq_add('cycle'); 19 } 20 } 21 22 // Otherwise, we'll add the version included with this module. 23 if (!$js) { 24 drupal_add_js(drupal_get_path('module', 'views_slideshow') . '/js/jquery.cycle.all.min.js'); 25 } 26 27 $module_path = drupal_get_path('module', 'views_slideshow_singleframe'); 28 drupal_add_js($module_path . '/views_slideshow.js', 'module'); 29 drupal_add_css($module_path . '/views_slideshow.css', 'module'); 30 } 31 32 /** 33 * Implements hook_theme(). 34 */ 35 function views_slideshow_singleframe_theme($existing, $type, $theme, $path) { 36 return array( 37 'views_slideshow_singleframe' => array( 38 'arguments' => array('view' => NULL, 'options' => array(), 'rows' => array(), 'title' => ''), 39 'template' => 'views-slideshow-singleframe', 40 'file' => 'views_slideshow_singleframe.theme.inc', 41 ), 42 'views_slideshow_singleframe_controls' =>array( 43 'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()), 44 'file' => 'views_slideshow_singleframe.theme.inc', 45 ), 46 'views_slideshow_singleframe_control_previous' =>array( 47 'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()), 48 'file' => 'views_slideshow_singleframe.theme.inc', 49 ), 50 'views_slideshow_singleframe_control_pause' =>array( 51 'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()), 52 'file' => 'views_slideshow_singleframe.theme.inc', 53 ), 54 'views_slideshow_singleframe_control_next' =>array( 55 'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()), 56 'file' => 'views_slideshow_singleframe.theme.inc', 57 ), 58 'views_slideshow_singleframe_pager' => array( 59 'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()), 60 'file' => 'views_slideshow_singleframe.theme.inc', 61 ), 62 'views_slideshow_singleframe_image_count' => array( 63 'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()), 64 'file' => 'views_slideshow_singleframe.theme.inc', 65 ), 66 'views_slideshow_singleframe_no_display_section' => array( 67 'arguments' => array('view' => NULL, 'rows' => NULL, 'vss_id' => NULL, 'mode' => NULL, 'teaser' => TRUE), 68 'file' => 'views_slideshow_singleframe.theme.inc', 69 ), 70 'views_slideshow_singleframe_no_display_teaser' => array( 71 'arguments' => array('item' => NULL, 'vss_id' => NULL, 'count' => NULL), 72 'file' => 'views_slideshow_singleframe.theme.inc', 73 ), 74 ); 75 } 76 77 /** 78 * Implements hook_help(). 79 */ 80 function views_slideshow_singleframe_help($path, $arg) { 81 switch ($path) { 82 case 'admin/help#views_slideshow_singleframe': 83 if (module_exists('advanced_help')) { 84 $output = '<p>' . l(t('Click here to view the documentation for Views Slideshow SingleFrame.'), 'admin/advanced_help/views_slideshow_singleframe') . '</p>'; 85 } 86 else { 87 $output = '<p>' . t('Views Slideshow SingleFrame help can be found by installing and enabling the !advanced_help', array('!advanced_help' => l('Advanced Help module', 'http://drupal.org/project/advanced_help'))) . '</p>'; 88 } 89 return $output; 90 } 91 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |