You are here

public function RecordShortenViewsHandlerFieldHostname::optionsForm in Shorten URLs 8.2

Same name in this branch
  1. 8.2 modules/record_shorten/record_shorten_views_handler_field_hostname.inc \RecordShortenViewsHandlerFieldHostname::optionsForm()
  2. 8.2 modules/record_shorten/src/record_shorten_views_handler_field_hostname.php \Drupal\record_shorten\RecordShortenViewsHandlerFieldHostname::optionsForm()

File

modules/record_shorten/record_shorten_views_handler_field_hostname.inc, line 17
A Views field handler for users' IP address.

Class

RecordShortenViewsHandlerFieldHostname
Restricts access to viewing the IP address field. There doesn't seem to be a standard for what permissions are necessary.

Code

public function optionsForm(&$form, &$form_state) {
  parent::optionsForm($form, $form_state);
  $form['notice'] = [
    '#value' => '<p class="form-item"><strong>' . t('Users must have both the "administer users" and "access site reports" permission to view this field.') . '</strong></p>',
    '#weight' => -10,
  ];
}