You are here

function content_multigroup_node_form_pre_render in Content Construction Kit (CCK) 6.3

Fix required flag during form rendering stage.

Required fields should display the required star in the rendered form.

1 string reference to 'content_multigroup_node_form_pre_render'
_content_multigroup_fieldgroup_form in modules/content_multigroup/content_multigroup.node_form.inc
Implementation of hook_fieldgroup_form().

File

modules/content_multigroup/content_multigroup.node_form.inc, line 280
Implementation of node edit functions for content multigroup.

Code

function content_multigroup_node_form_pre_render(&$form) {
  foreach ($form['#multigroups'] as $group_name => $group_fields) {
    if (!empty($form['#multigroup_required_fields'][$group_name])) {
      $required_fields = array_keys($form['#multigroup_required_fields'][$group_name]);
      content_multigroup_node_form_fix_required($form[$group_name], $required_fields, TRUE);
    }
  }
  return $form;
}