function fieldgroup_edit_group_submit in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 5 fieldgroup.module \fieldgroup_edit_group_submit()
1 string reference to 'fieldgroup_edit_group_submit'
- fieldgroup_edit_group_form in modules/
fieldgroup/ fieldgroup.module
File
- modules/
fieldgroup/ fieldgroup.module, line 199 - Create field groups for CCK fields.
Code
function fieldgroup_edit_group_submit($form, &$form_state) {
$form_values = $form_state['values'];
$content_type = $form['#content_type'];
// $groups = fieldgroup_groups($content_type['type']);
// $group = $groups[$form_values['group_name']];
// TODO : when a group is added, it is displayed as a fieldset *with no label*
// whereas the 'display field' overview states 'Label : above'
// (the description is not displayed either)
// fixed when the 'display field' form is submitted.
fieldgroup_save_group($content_type['type'], $form_values);
$form_state['redirect'] = 'admin/content/node-type/' . $content_type['url_str'] . '/fields';
}