| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: image_plugin_argument_default_image_size.inc,v 1.1.2.1 2010/08/03 17:43:00 sun Exp $ 3 4 /** 5 * @file 6 * Contains the image size argument default plugin. 7 */ 8 9 /** 10 * Default argument plugin to pick an image size. 11 */ 12 class image_plugin_argument_default_image_size extends views_plugin_argument_default { 13 var $option_name = 'default_argument_image_size'; 14 15 function argument_form(&$form, &$form_state) { 16 foreach (image_get_sizes() as $key => $size) { 17 $sizes[$key] = $size['label']; 18 } 19 20 $form[$this->option_name] = array( 21 '#type' => 'select', 22 '#title' => t('Default argument'), 23 '#options' => $sizes, 24 '#default_value' => $this->get_argument(), 25 '#process' => array('views_process_dependency'), 26 '#dependency' => array( 27 'radio:options[default_action]' => array('default'), 28 'radio:options[default_argument_type]' => array($this->id), 29 ), 30 '#dependency_count' => 2, 31 ); 32 } 33 } 34
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 |