| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The plugin that handles date navigation attachments. 4 * 5 * Creates a special attachment for this purpose only. 6 */ 7 class date_plugin_display_attachment extends views_plugin_display_attachment { 8 9 // Require the date_nav style. That style has a date_nav type 10 // so it won't show up as a style option on any other display. 11 function get_style_type() { return 'date_nav'; } 12 13 // No options to set style, force it to the right value. 14 function defaultable_sections($section = NULL) { 15 if (in_array($section, array('row_options', 'row_plugin', 'items_per_page'))) { 16 return FALSE; 17 } 18 return parent::defaultable_sections($section); 19 } 20 21 function option_definition() { 22 $options = parent::option_definition(); 23 $options['style_plugin']['default'] = 'date_nav'; 24 $options['items_per_page']['default'] = 0; 25 $options['row_plugin']['default'] = ''; 26 //$options['defaults']['default']['style_plugin'] = FALSE; 27 $options['defaults']['default']['style_options'] = FALSE; 28 $options['defaults']['default']['items_per_page'] = FALSE; 29 $options['defaults']['default']['row_plugin'] = FALSE; 30 $options['defaults']['default']['row_options'] = FALSE; 31 32 return $options; 33 } 34 }
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 |