| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: views_plugin_style_list.inc,v 1.1 2008/09/03 19:21:30 merlinofchaos Exp $ 3 /** 4 * @file 5 * Contains the list style plugin. 6 */ 7 8 /** 9 * Style plugin to render each item in an ordered or unordered list. 10 * 11 * @ingroup views_style_plugins 12 */ 13 class views_plugin_style_list extends views_plugin_style { 14 /** 15 * Set default options 16 */ 17 function option_definition() { 18 $options = parent::option_definition(); 19 20 $options['type'] = array('default' => 'ul'); 21 22 return $options; 23 } 24 25 /** 26 * Render the given style. 27 */ 28 function options_form(&$form, &$form_state) { 29 parent::options_form($form, $form_state); 30 $form['type'] = array( 31 '#type' => 'radios', 32 '#title' => t('List type'), 33 '#options' => array('ul' => t('Unordered list'), 'ol' => t('Ordered list')), 34 '#default_value' => $this->options['type'], 35 ); 36 } 37 } 38
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 |