1 field_ui.admin.inc | field_ui_view_mode_enable_access() |
Access callback: Checks the users access and token to enable a display mode.
File
- core/
modules/ field_ui/ field_ui.admin.inc, line 2416 - Admin page callbacks for the Field UI module.
Code
function field_ui_view_mode_enable_access() {
return user_access('administer view modes') && backdrop_valid_token($_GET['token'], 'view_mode_enable');
}