You are here

public function uc_addresses_views_plugin_argument_address_access::options_form in Ubercart Addresses 7

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

Implements views_plugin_argument_validate#options_form().

Overrides views_plugin_argument_validate::options_form

File

views/uc_addresses_views_plugin_argument_address_access.inc, line 26
Definition of uatest_views_plugin_argument_address_access.

Class

uc_addresses_views_plugin_argument_address_access
Checks if the current user has access to addresses of the given user.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['access_type'] = array(
    '#type' => 'select',
    '#title' => t('Address access type'),
    '#description' => t('Select for which type of operation permissions should be checked. Usually "!access_type".', array(
      '!access_type' => t('View'),
    )),
    '#options' => array(
      'view' => t('View'),
      'edit' => t('Edit'),
      'delete' => t('Delete'),
    ),
    '#default_value' => $this->options['access_type'],
  );
}