You are here

function fieldgroup_edit_group_submit in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6 modules/fieldgroup/fieldgroup.module \fieldgroup_edit_group_submit()

File

./fieldgroup.module, line 152
Create field groups for CCK fields.

Code

function fieldgroup_edit_group_submit($form_id, &$form_values, $content_type, $action) {
  $groups = fieldgroup_groups($content_type['type']);
  $group = $groups[$form_values['group_name']];
  fieldgroup_save_group($content_type['type'], $form_values);
  cache_clear_all('fieldgroup_data', 'cache_content');
  return 'admin/content/types/' . $content_type['url_str'] . '/fields';
}