class rotor_plugin_row_rotor in Rotor Banner 6.2
Same name and namespace in other branches
- 7 views/rotor_plugin_row_rotor.inc \rotor_plugin_row_rotor
Style plugin to render a map.
Hierarchy
- class \rotor_plugin_row_rotor extends \views_plugin_row
Expanded class hierarchy of rotor_plugin_row_rotor
1 string reference to 'rotor_plugin_row_rotor'
- rotor_views_plugins in views/
rotor.views.inc - Implementation of hook_views_plugins
File
- views/
rotor_plugin_row_rotor.inc, line 13 - GMap style plugin.
View source
class rotor_plugin_row_rotor extends views_plugin_row {
/**
* Set default options
*/
function option_definition() {
$options = parent::option_definition();
$options['imagecache_preset'] = array(
'default' => '',
);
return $options;
}
function render($row) {
$output = theme($this
->theme_functions(), $this->view, $this->options, $row);
return trim($output);
}
/**
* Render the given style.
*/
/**
* Render the given style.
*/
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
if (module_exists('imagecache')) {
$presets[0] = t('None');
$presets += rotor_get_imagecache_presets();
$form['imagecache_preset'] = array(
'#type' => 'select',
'#title' => t('Imagecache preset'),
'#default_value' => $this->options['imagecache_preset'],
'#options' => $presets,
'#description' => t('Select the imagecache preset to use with the images.'),
);
}
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
rotor_plugin_row_rotor:: |
function | Render the given style. | ||
rotor_plugin_row_rotor:: |
function | Set default options | ||
rotor_plugin_row_rotor:: |
function |