| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * Admin functions for the Views Slideshow: ImageFlow module. 6 */ 7 8 /** 9 * Configure Views Slideshow: Imageflow; menu callback for 10 * admin/build/views/views_slideshow_imageflow. 11 */ 12 function views_slideshow_imageflow_settings() { 13 // First attempt to autodiscover the path to the ImageFlow plugin. 14 $path = views_slideshow_imageflow_path(); 15 16 $form = array(); 17 18 $message = t('To use !imageflow, you must first !download the plugin package, extract it, and place the entire contents into the folder on your server specified here. (An attempt at autodiscovery will be made if it is within the %sites or %other folders.)', array('%sites' => 'sites/all/libraries', '%other' => 'sites/example.com/libraries', '!imageflow' => l(t('ImageFlow'), 'http://finnrudolph.de/ImageFlow', array('attributes' => array('target' => '_blank'))), '!download' => l(t('download'), 'http://finnrudolph.de/ImageFlow/Download', array('attributes' => array('target' => '_blank'))))); 19 if (!file_exists($path .'/imageflow.js')) { 20 drupal_set_message($message, 'error'); 21 } 22 23 $form[views_slideshow_imageflow_variable_name('plugin_path')] = array( 24 '#type' => 'textfield', 25 '#title' => t('Path to the ImageFlow plugin'), 26 '#description' => $message, 27 '#default_value' => $path, 28 ); 29 $form[views_slideshow_imageflow_variable_name('packed')] = array( 30 '#type' => 'checkbox', 31 '#title' => t('Use packed scripts'), 32 '#description' => t('If checked, then use the packed JS and CSS files when displaying the ImageFlow player.'), 33 '#default_value' => views_slideshow_imageflow_variable_get('packed'), 34 ); 35 $form[views_slideshow_imageflow_variable_name('include_css')] = array( 36 '#type' => 'checkbox', 37 '#title' => t('Include CSS'), 38 '#description' => t('If checked, then use the supplied CSS file when displaying the ImageFlow player. Note that you may experience problems when Optimizing CSS files from the !performance_page. Please see !issue for help resolving this.', array('!performance_page' => l(t('performance page'), 'admin/settings/performance'), '!issue' => l(t('SOLVED: Enabling CSS File Optimization makes ImageFlow Container show Images vertical'), 'http://drupal.org/node/769968', array('attributes' => array('target' => '_blank'))))), 39 '#default_value' => views_slideshow_imageflow_variable_get('include_css'), 40 ); 41 42 return system_settings_form($form); 43 }
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 |