function record_shorten_views_handler_field_hostname::options_form in Shorten URLs 8
Same name in this branch
- 8 modules/record_shorten/record_shorten_views_handler_field_hostname.inc \record_shorten_views_handler_field_hostname::options_form()
- 8 modules/record_shorten/src/record_shorten_views_handler_field_hostname.php \Drupal\record_shorten\record_shorten_views_handler_field_hostname::options_form()
Same name and namespace in other branches
- 6 record_shorten_views_handler_field_hostname.inc \record_shorten_views_handler_field_hostname::options_form()
- 7.2 record_shorten_views_handler_field_hostname.inc \record_shorten_views_handler_field_hostname::options_form()
- 7 record_shorten_views_handler_field_hostname.inc \record_shorten_views_handler_field_hostname::options_form()
File
- modules/
record_shorten/ record_shorten_views_handler_field_hostname.inc, line 13 - A Views field handler for users' IP address.
Class
- record_shorten_views_handler_field_hostname
- Restricts access to viewing the IP address field. There doesn't seem to be a standard for what permissions are necessary.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['notice'] = array(
'#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,
);
}