|
|
Drupal example source code file (views_plugin_style_list.inc)
The views_plugin_style_list.inc Drupal example source code<?php // $Id: views_plugin_style_list.inc,v 1.1 2008/09/03 19:21:30 merlinofchaos Exp $ /** * @file * Contains the list style plugin. */ /** * Style plugin to render each item in an ordered or unordered list. * * @ingroup views_style_plugins */ class views_plugin_style_list extends views_plugin_style { /** * Set default options */ function option_definition() { $options = parent::option_definition(); $options['type'] = array('default' => 'ul'); return $options; } /** * Render the given style. */ function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['type'] = array( '#type' => 'radios', '#title' => t('List type'), '#options' => array('ul' => t('Unordered list'), 'ol' => t('Ordered list')), '#default_value' => $this->options['type'], ); } } Other Drupal examples (source code examples)Here is a short list of links related to this Drupal views_plugin_style_list.inc source code file: |
"Drupal" is a registered trademark of Dries Buytaert.
my drupal tutorials and examples
Copyright
1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.
Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.