You are here

function context_og_form_alter in Context OG 6.2

Implementation of hook_form_alter().

File

./context_og.module, line 108

Code

function context_og_form_alter(&$form, $form_state, $form_id) {
  if ($form['#id'] === 'node-form' && arg(0) != 'admin') {

    // Prevent this from firing on admin pages.
    context_og_set_og_context();
  }
}