'rs-carousel'); return $options; } /** * Build the settings form for the view. */ public function options_form(&$form, &$form_state) { $carousel_config_form = jquery_carousel_config_form(); $form = array_merge($form, $carousel_config_form); foreach (array_keys($form) as $key) { if (isset($form[$key]) && is_array($form[$key])) { $form[$key]['#default_value'] = $this->options[$key]; } } } /** * Validates the settings form values. */ public function options_validate(&$form, &$form_state) { $selector = $form_state['input']['style_options']['selector']; _jquery_carousel_config_validate('options][selector', $selector, 'view'); } }