function content_type_groups_group_delete_confirm in Content type groups 7
Same name and namespace in other branches
- 7.2 content_type_groups.admin.inc \content_type_groups_group_delete_confirm()
Menu callback: delete single content type group.
1 string reference to 'content_type_groups_group_delete_confirm'
- content_type_groups_menu in ./
content_type_groups.module - Implements hook_menu().
File
- ./
content_type_groups.admin.inc, line 196 - Admin page callback file for the Content type groups module.
Code
function content_type_groups_group_delete_confirm($form, &$form_state, $group) {
$group = new ContentTypeGroup($group);
$form['type'] = array(
'#type' => 'value',
'#value' => $group->type,
);
$form['name'] = array(
'#type' => 'value',
'#value' => $group->name,
);
$message = t('Are you sure you want to delete the content type group %group?', array(
'%group' => $group->name,
));
$caption = '';
$caption .= '<p>' . t('This action cannot be undone.') . '</p>';
return confirm_form($form, $message, 'admin/structure/types/groups', $caption, t('Delete'));
}