function trumba_open_spud_edit_form in Trumba 7
Ctools edit form.
1 string reference to 'trumba_open_spud_edit_form'
- trumba_open_spud.inc in plugins/
content_types/ trumba_open_spud.inc - Configuration and content type for a main calendar Trumba spud.
File
- plugins/
content_types/ trumba_open_spud.inc, line 31 - Configuration and content type for a main calendar Trumba spud.
Code
function trumba_open_spud_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['trumba_open_type'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t('Spud Type'),
'#description' => t('Enter the name for the type of spud this should be.'),
'#default_value' => $conf['trumba_open_type'],
);
$form['trumba_open_config'] = array(
'#type' => 'textfield',
'#required' => FALSE,
'#title' => t('Spud Configuration'),
'#description' => t('If the spud type requires configuration text enter it here.'),
'#default_value' => $conf['trumba_open_config'],
);
// 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_open_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_open_webname'] ? $conf['trumba_open_webname'] : $default_webname,
);
$form['trumba_open_url'] = array(
'#type' => 'textfield',
'#required' => FALSE,
'#title' => t('Calendar URL'),
'#description' => t('<strong>Only necessary if this spud will NOT be on the
same page as the main calendar spud!</strong> Enter the full path URL for this
website where this calendar will be placed (e.g.: https://ucdavis.edu/calendar)'),
'#default_value' => $conf['trumba_open_url'],
);
return $form;
}