function views_fluidgrid_style_plugin::options_form in Views Fluid Grid - jQuery Masonry 6
Same name and namespace in other branches
- 7 includes/views_fluidgrid_style_plugin.inc \views_fluidgrid_style_plugin::options_form()
Render the given style.
File
- ./
views_fluidgrid_style_plugin.inc, line 25
Class
- views_fluidgrid_style_plugin
- Implementation of views_plugin_style().
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['single_mode'] = array(
'#type' => 'radios',
'#title' => t('Single mode'),
'#options' => array(
'true' => t('True'),
'false' => t('False'),
),
'#default_value' => $this->options['single_mode'],
'#description' => t('Disables measuring the width of each floated element. Set to true if floated elements have the same width.'),
);
$form['column_width'] = array(
'#type' => 'textfield',
'#title' => t('Column width'),
'#default_value' => $this->options['column_width'],
'#description' => t('Width in pixels of 1 column of your grid. default: outer width of the first floated element.'),
);
$form['resizeable'] = array(
'#type' => 'radios',
'#title' => t('Resizable'),
'#options' => array(
'true' => t('True'),
'false' => t('False'),
),
'#default_value' => $this->options['resizeable'],
'#description' => t('Binds a Masonry call to window resizes.'),
);
$form['callback'] = array(
'#type' => 'textarea',
'#title' => t('Custom action on each item'),
'#default_value' => $this->options['callback'],
'#description' => t('<i>$(this)</i> will refer to the applicable elements Masonry just rearranged.'),
);
}