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 2391
Administrative interface for custom field type creation.

Code

function field_ui_view_mode_enable_access() {
  return user_access('administer view modes') && backdrop_valid_token($_GET['token'], 'view_mode_enable');
}