''); return $options; } function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); // Pre-build all of our option lists for the dials and switches that follow. $fields = array('' => t('')); foreach ($this->display->handler->get_handlers('field') as $field => $handler) { if ($label = $handler->label()) { $fields[$field] = $label . ' ' . $handler->options['format']; } else { $fields[$field] = $handler->ui_name(); } } $form['extra_descriptor'] = array( '#type' => 'select', '#title' => t('Agregar Campo descriptor'), '#options' => array( 0 => t('No'), 'extra_descriptor' => t('Si'), ), '#default_value' => $this->options['extra_descriptor'], '#required' => true, '#weight' => 9, ); } }