function conditional_fields_form_alter in Conditional Fields 5
Same name and namespace in other branches
- 8 conditional_fields.module \conditional_fields_form_alter()
- 6.2 conditional_fields.module \conditional_fields_form_alter()
- 6 conditional_fields.module \conditional_fields_form_alter()
- 4.x conditional_fields.module \conditional_fields_form_alter()
Implementation of hook_form_alter()
File
- ./
conditional_fields.module, line 225
Code
function conditional_fields_form_alter($form_id, &$form) {
switch ($form_id) {
case '_content_admin_field':
conditional_fields_content_admin_field($form);
break;
case 'fieldgroup_edit_group_form':
conditional_fields_fieldgroup_edit_group_form($form);
break;
case 'content_admin_field_overview_form':
// Find conditional fields, mark them, and disable group select for them
$conditional_fields = conditional_fields_field_overview_form($form);
break;
case '_content_admin_field_remove':
$form['#submit'] = $form['#submit'] + array(
'_conditional_fields_content_admin_field_remove_submit' => array(),
);
break;
case 'fieldgroup_remove_group':
$form['#submit'] = $form['#submit'] + array(
'_conditional_fields_fieldgroup_remove_group_submit' => array(
'group_name' => arg(5),
),
);
break;
case $form['type']['#value'] . '_node_form':
conditional_fields_node_editing_form($form);
break;
}
}