function views_simpleads_plugin::options_form in SimpleAds 7
Same name and namespace in other branches
- 7.2 includes/views/views_simpleads_plugin.inc \views_simpleads_plugin::options_form()
Provide a form for setting options.
_state
Parameters
array $form:
Overrides views_plugin_style::options_form
File
- includes/
views_simpleads_plugin.inc, line 33 - Contains the list style plugin.
Class
- views_simpleads_plugin
- Style plugin to render SimpleAds.
Code
function options_form(&$form, &$form_state) {
$effects = _simpleads_rotation_effects();
$form['ads_rotation_type'] = array(
'#type' => 'radios',
'#title' => t('Ads auto rotation type'),
'#options' => $effects,
'#default_value' => $this->options['ads_rotation_type'],
);
$form['ads_rotation_delay'] = array(
'#type' => 'textfield',
'#title' => t('Ad rotation delay'),
'#default_value' => $this->options['ads_rotation_delay'],
'#description' => t('Delay value is in seconds'),
);
$form['ads_width'] = array(
'#type' => 'textfield',
'#title' => t('Ad width'),
'#default_value' => $this->options['ads_width'],
);
$form['ads_height'] = array(
'#type' => 'textfield',
'#title' => t('Ad height'),
'#default_value' => $this->options['ads_height'],
);
}