| 1 field_group.field_ui.inc | _field_group_get_admin_path($entity_type, $bundle, $view_mode) |
Helper function to return the admin path for field UI.
Parameters
string $entity_type: The entity type.
string $bundle: The bundle name.
string $view_mode: The view mode: form or the actual display mode.
Return value
string: System path pointing to the field listing for the requested view mode.
File
- core/
modules/ field_group/ field_group.field_ui.inc, line 1141 - Field_group.field_ui.inc is a file that contains most functions needed on the Fields UI Manage forms (display and fields).
Code
function _field_group_get_admin_path($entity_type, $bundle, $view_mode) {
$admin_path = _field_ui_bundle_admin_path($entity_type, $bundle);
if ($view_mode == 'form') {
$admin_path .= '/fields';
}
else {
$admin_path .= '/display/' . $view_mode;
}
return $admin_path;
}