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