function menu_link_field_update_forbid in Menu Link (Field) 7
Implements hook_field_update_forbid().
File
- ./
menu_link.module, line 287
Code
function menu_link_field_update_forbid($field, $prior_field, $has_data) {
if ($field['field_name'] == MENU_LINK_DEFAULT_FIELD) {
if (!empty($field['settings']['link_path_field'])) {
throw new FieldUpdateForbiddenException(t('The link path cannot not be exposed for the ":menu_link_field" field.', array(
':menu_link_field' => MENU_LINK_DEFAULT_FIELD,
)));
}
}
}