function spaces_og_form_alter in Spaces 6
Same name and namespace in other branches
- 5.2 spaces_og.module \spaces_og_form_alter()
- 6.3 spaces_og/spaces_og.module \spaces_og_form_alter()
- 6.2 spaces_og/spaces_og.module \spaces_og_form_alter()
- 7.3 spaces_og/spaces_og.module \spaces_og_form_alter()
- 7 spaces_og/spaces_og.module \spaces_og_form_alter()
File
- spaces_og/
spaces_og.module, line 633
Code
function spaces_og_form_alter(&$form, $form_state, $form_id) {
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_og_form_alter_group($form, $form_state);
}
elseif (!og_is_omitted_type($form['#node']->type)) {
_spaces_og_form_alter_node($form, $form_state);
}
}
break;
}
}