feed_image = drupal_get_path('module', 'views_bonus_export') . '/images/xml.png'; } /** * Set options fields and default values. * * @return * An array of options information. */ function option_definition() { $options = parent::option_definition(); $options['transform'] = array( 'default' => TRUE, 'translatable' => FALSE, ); $options['transform_type'] = array( 'default' => 'dash', 'translatable' => FALSE, ); return $options; } /** * Options form mini callback. * * @param $form * Form array to add additional fields to. * @param $form_state * State of the form. * @return * None. */ function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['transform'] = array( '#type' => 'checkbox', '#title' => t('Transform spaces'), '#default_value' => $this->options['transform'], '#description' => t('Transform spaces to valid XML in field labels (spaces create invalid XML markup).'), ); $form['transform_type'] = array( '#type' => 'select', '#title' => t('Transform type'), '#default_value' => $this->options['transform_type'], '#options' => array( 'dash' => t('Dash'), 'underline' => t('Underline'), 'camel' => t('camelCase'), 'pascal' => t('PascalCase'), ), '#process' => array('views_process_dependency'), '#dependency' => array( 'edit-style-options-transform' => array(TRUE), ), ); } }