FALSE); // Field element_type and classes cannot be defined in the options // definition because the field handlers are not attached when the option // defaults are set up in the object's init() method. return $options; } /** * Provide a form for setting options. */ function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['semantic_html'] = array( '#tree' => TRUE, ); foreach ($this->display->handler->get_handlers('field') as $field => $handler) { $default_value = is_array($this->options['semantic_html'][$field]) ? $this->options['semantic_html'][$field] : array('element_type' => 'div', 'class' => ''); $form['semantic_html'][$field] = array( '#title' => $handler->label() ? $handler->label() : $handler->ui_name(), '#type' => 'fieldset', '#attributes' => array( 'class' => 'clear-block', ), ); $form['semantic_html'][$field]['element_type'] = array( '#prefix' => '