function _makemeeting_calendarselector_process in Make Meeting Scheduler 7
Process the makemeeting_calendarselector element before rendering
Parameters
$element:
1 string reference to '_makemeeting_calendarselector_process'
- makemeeting_element_info in ./
makemeeting.module - hook_elements implementation
File
- ./
makemeeting.module, line 252 - Make Meeting module
Code
function _makemeeting_calendarselector_process($element) {
// Adding javascript locales and settings
$days = array(
t('Su'),
t('Mon'),
t('Tue'),
t('Wed'),
t('Th'),
t('Fr'),
t('Sat'),
);
$months = array(
t('January'),
t('Febuary'),
t('March'),
t('April'),
t('May'),
t('June'),
t('July'),
t('August'),
t('September'),
t('October'),
t('November'),
t('December'),
);
$element['#attributes']['months'] = $months;
$nav_links = array(
'p' => '«',
'n' => '»',
't' => t('Today'),
'b' => t('Add date to list'),
);
drupal_add_js(array(
'makemeeting' => array(
'days' => $days,
'months' => $months,
'navLinks' => $nav_links,
),
), 'setting');
drupal_add_js(drupal_get_path('module', 'makemeeting') . '/jcalendar-source.js');
drupal_add_css(drupal_get_path('module', 'makemeeting') . '/jcalendar.css');
return $element;
}