You are here

function event_calendar_form_alter in Event Calendar 7

Implements hook_form_alter().

Make taxonomy select field invisible.

File

./event_calendar.module, line 289
The module file that allows events to be created and required admin approval.

Code

function event_calendar_form_alter(&$form, &$form_state, $form_id) {
  $node_type = variable_get('event_calendar_node_type', 'event_calendar');
  $id = $node_type . '_node_form';
  if ($form_id == $id) {
    $language = $form['event_calendar_status']['#language'];
    $form['event_calendar_status'][$language]['#type'] = 'value';
  }
}