function spaces_form_alter in Spaces 6
Same name and namespace in other branches
- 5.2 spaces.module \spaces_form_alter()
- 5 spaces.module \spaces_form_alter()
- 6.3 spaces.overrides.inc \spaces_form_alter()
- 7.3 spaces.overrides.inc \spaces_form_alter()
- 7 spaces.overrides.inc \spaces_form_alter()
Implementation of hook_form_alter().
File
- ./
spaces.module, line 209
Code
function spaces_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'system_modules':
spaces_menu_rebuild();
break;
// Blow away the customization form for the spaces menu -- we don't want users messing with this... for now.
case 'menu_overview_form':
if ($form['#menu']['menu_name'] == 'spaces') {
$form = array();
$form['message'] = array(
'#type' => 'markup',
'#value' => '<p>' . t('The spaces menu is meant to be customized on a per-space basis - you can customize it on the features page of any space.') . '</p>',
);
}
break;
default:
if ($form['#id'] == 'node-form' && arg(0) . '/' . arg(1) != 'admin/content') {
spaces_router('node form', $form['#node']);
}
break;
}
}