function spaces_og_form_alter in Spaces 7.3
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 spaces_og/spaces_og.module \spaces_og_form_alter()
- 6.2 spaces_og/spaces_og.module \spaces_og_form_alter()
- 7 spaces_og/spaces_og.module \spaces_og_form_alter()
Implements hook_form_alter().
File
- spaces_og/
spaces_og.module, line 406
Code
function spaces_og_form_alter(&$form, $form_state, $form_id) {
if (!empty($form['#node_edit_form']) && arg(0) . '/' . arg(1) != 'admin/content') {
// Group nodes
if (og_is_group_type('node', $form['type']['#value'])) {
module_load_include('inc', 'spaces_og', 'spaces_og.pages');
_spaces_og_form_alter_group($form, $form_state);
}
elseif (variable_get('og_group_type_' . $form['type']['#value'], 'omitted') != 'omitted') {
module_load_include('inc', 'spaces_og', 'spaces_og.pages');
_spaces_og_form_alter_node($form, $form_state);
}
}
}