function trumba_main_calendar_spud_edit_form in Trumba 7
Ctools edit form.
1 string reference to 'trumba_main_calendar_spud_edit_form'
- trumba_main_calendar_spud.inc in plugins/
content_types/ trumba_main_calendar_spud.inc - Configuration and content type for a main calendar Trumba spud.
File
- plugins/
content_types/ trumba_main_calendar_spud.inc, line 33 - Configuration and content type for a main calendar Trumba spud.
Code
function trumba_main_calendar_spud_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
// Collect the webname, used to identify the organization/account that this
// spud belong to. Set to the default frm the admin settings to start with.
$default_webname = variable_get('trumba_webname', '');
$form['trumba_main_cal_webname'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t('Web Name'),
'#description' => t('This is the unique identifier for your calendar account on Trumba.'),
'#default_value' => $conf['trumba_main_cal_webname'] ? $conf['trumba_main_cal_webname'] : $default_webname,
);
$form['trumba_main_cal_url'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t('Calendar URL'),
'#description' => t('Enter the full path URL for this website where this
calendar will be placed (e.g.: https://ucdavis.edu/calendar)'),
'#default_value' => $conf['trumba_main_cal_url'],
);
$form['trumba_main_cal_new_window'] = array(
'#type' => 'checkbox',
'#title' => t('Open events in new window'),
'#default_value' => $conf['trumba_main_cal_new_window'],
);
return $form;
}