You are here

function _event_get_type_control in Event 5.2

Same name and namespace in other branches
  1. 5 event.module \_event_get_type_control()

Returns a dropdown event-enabled content type input control.

Parameters

$curtype The current type id.:

$autosubmit Adds 'onChange' form submit javascript command to control.:

Return value

A form with a dropdown event taxonomy term input control.

1 call to _event_get_type_control()
event_page in ./event.module
Displays a page containing event information. The page layout defaults to a graphical calendar.

File

./event.module, line 1763

Code

function _event_get_type_control($curtype = NULL, $autosubmit = TRUE) {
  if (module_exists('taxonomy')) {
    $form = drupal_get_form('event_type_filter_form', $curtype, $autosubmit);
    return theme('event_filter_control', $form);
  }
}