function context_form_alter in Context 7.3
Same name and namespace in other branches
- 8.4 context.module \context_form_alter()
- 6.3 context.core.inc \context_form_alter()
- 6 context.core.inc \context_form_alter()
- 6.2 context.core.inc \context_form_alter()
Implementation of hook_form_alter().
File
- ./
context.core.inc, line 149
Code
function context_form_alter(&$form, $form_state, $form_id) {
// If the form is an admin for, flag it so that we can force a rebuild if needed.
if (path_is_admin($_GET['q'])) {
$form['#submit'][] = 'context_admin_form_submit';
}
// Trigger the condition in an after_build function to avoid being skipped
// when there are validation errors.
$form['#after_build'][] = 'context_form_alter_node_after_build';
}