function field_group_enable_form in Field Group 7
Menu callback; present a form for re-enabling a group.
1 string reference to 'field_group_enable_form'
- field_group_menu in ./
field_group.module - Implements hook_menu().
File
- ./
field_group.field_ui.inc, line 774 - 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_enable_form($form, &$form_state, $group, $view_mode = 'form') {
$form['#group'] = $group;
$admin_path = _field_ui_bundle_admin_path($group->entity_type, $group->bundle);
if ($view_mode == 'form') {
$admin_path .= '/fields';
}
else {
$admin_path .= '/display/' . $view_mode;
}
$form['#redirect'] = array(
$admin_path,
);
$output = confirm_form($form, t('Are you sure you want to enable the group %group?', array(
'%group' => t($group->label),
)), $admin_path, '', t('Enable'), t('Cancel'), 'confirm');
return $output;
}