function context_form_alter in Context 6
Same name and namespace in other branches
- 8.4 context.module \context_form_alter()
- 6.3 context.core.inc \context_form_alter()
- 6.2 context.core.inc \context_form_alter()
- 7.3 context.core.inc \context_form_alter()
Implementation of hook_form_alter().
File
- ./
context.core.inc, line 242
Code
function context_form_alter(&$form, $form_state, $form_id) {
if (isset($form['#node']) && arg(0) != 'admin') {
// Prevent this from firing on admin pages... damn form driven apis...
context_set_by_condition('node', $form['#node']->type);
}
if ($form_id == 'system_modules') {
context_invalidate_cache();
}
}