You are here

function context_form_alter_node_after_build in Context 7.3

Form #after_build callback for context_form_alter().

1 string reference to 'context_form_alter_node_after_build'
context_form_alter in ./context.core.inc
Implementation of hook_form_alter().

File

./context.core.inc, line 162

Code

function context_form_alter_node_after_build($form, &$form_state) {

  // Prevent this from firing on admin pages... damn form driven apis...
  if (!empty($form['#node_edit_form']) && arg(0) != 'admin') {
    context_node_condition($form['#node'], 'form');
  }
  return $form;
}