function fieldgroup_remove_group in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 5 fieldgroup.module \fieldgroup_remove_group()
- 6 modules/fieldgroup/fieldgroup.module \fieldgroup_remove_group()
- 6.2 modules/fieldgroup/fieldgroup.module \fieldgroup_remove_group()
1 string reference to 'fieldgroup_remove_group'
- fieldgroup_menu in modules/
fieldgroup/ fieldgroup.module - Implementation of hook_menu().
File
- modules/
fieldgroup/ fieldgroup.module, line 188 - Create field groups for CCK fields.
Code
function fieldgroup_remove_group(&$form_state, $type_name, $group_name) {
$content_type = content_types($type_name);
$groups = fieldgroup_groups($content_type['type']);
$group = isset($groups[$group_name]) ? $groups[$group_name] : '';
if (empty($group)) {
drupal_not_found();
exit;
}
$form['#submit'][] = 'fieldgroup_remove_group_submit';
$form['#content_type'] = $content_type;
$form['#group_name'] = $group_name;
return confirm_form($form, t('Are you sure you want to remove the group %label?', array(
'%label' => t($group['label']),
)), 'admin/content/node-type/' . $content_type['url_str'] . '/fields', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}