function spaces_calendar_form_alter in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_calendar/spaces_calendar.module \spaces_calendar_form_alter()
Implementation of hook_form_alter()
File
- spaces_calendar/
spaces_calendar.module, line 104
Code
function spaces_calendar_form_alter($form_id, &$form) {
if (_spaces_calendar_enabled()) {
_spaces_calendar_alter_links();
switch ($form_id) {
// TODO: use content types in features array to determine calendar node form id
case variable_get('spaces_calendar_nodetype', '') . '_node_form':
// add a submit handler to send user to view of submitted event
$form['#submit']['spaces_calendar_event_submit'] = array();
}
}
}