You are here

function spaces_form_alter in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_form_alter()
  2. 6.3 spaces.overrides.inc \spaces_form_alter()
  3. 6 spaces.module \spaces_form_alter()
  4. 7.3 spaces.overrides.inc \spaces_form_alter()
  5. 7 spaces.overrides.inc \spaces_form_alter()

File

./spaces.module, line 205

Code

function spaces_form_alter($form_id, &$form) {
  switch ($form_id) {
    default:
      if ($form['#id'] == 'node-form' && arg(0) . '/' . arg(1) != 'admin/content') {

        // GROUP NODES
        if (og_is_group_type($form['#node']->type)) {
          _spaces_form_alter_group($form);
        }
        elseif (!og_is_omitted_type($form['#node']->type)) {
          _spaces_form_alter_node($form);
        }
      }
      break;
  }
}