You are here

function views_plugin_style_galleria::options_form in Galleria 7

Show a form to edit the style options.

Overrides views_plugin_style::options_form

File

includes/views_plugin_style_galleria.inc, line 29
Galleria style plugin for the Views module.

Class

views_plugin_style_galleria
Implements a style type plugin for the Views module.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['galleria'] = array(
    '#type' => 'fieldset',
    '#title' => 'Galleria',
  );
  $optionsets = array();
  foreach (galleria_optionsets_load_all() as $name => $optionset) {
    $optionsets[$name] = check_plain($optionset->title);
  }
  $form['galleria']['galleria_optionset'] = array(
    '#title' => t('Option set'),
    '#type' => 'select',
    '#options' => $optionsets,
    '#default_value' => $this->options['galleria_optionset'],
  );
}