function content_type_groups_group_delete_confirm in Content type groups 7.2
Same name and namespace in other branches
- 7 content_type_groups.admin.inc \content_type_groups_group_delete_confirm()
Menu callback: delete single content type group.
File
- ./
content_type_groups.admin.inc, line 203 - 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'));
}