You are here

public function uc_addresses_views_plugin_row_address_view::options_form in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 views/uc_addresses_views_plugin_row_address_view.inc \uc_addresses_views_plugin_row_address_view::options_form()

Overrides views_plugin_row::options_form().

Return value

void

Overrides views_plugin_row::options_form

File

views/uc_addresses_views_plugin_row_address_view.inc, line 48
Contains the address view row style plugin.

Class

uc_addresses_views_plugin_row_address_view
Plugin which performs a address_view on the resulting object.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['view_link'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display view links'),
    '#default_value' => $this->options['view_link'],
  );
  $form['edit_link'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display edit links'),
    '#description' => t('Note that edit links are only shown for addresses that the current user may edit.'),
    '#default_value' => $this->options['edit_link'],
  );
  $form['delete_link'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display delete links'),
    '#description' => t('Note that delete links are only shown for addresses that the current user may delete.'),
    '#default_value' => $this->options['delete_link'],
  );
  $form['default_flags'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display default flags'),
    '#description' => t('This adds the "default" label to default addresses. For example, the default billing address will get the label "!label".', array(
      '!label' => t('Default billing address'),
    )),
    '#default_value' => $this->options['default_flags'],
  );
}