function _makemeeting_date_timestamp in Make Meeting Scheduler 7.2
Helper function to convert date field value into an Unix timestamp
Parameters
$array array Date field value (month, day and year):
Return value
\DateTime
5 calls to _makemeeting_date_timestamp()
- makemeeting_answers_form in ./
makemeeting.form.inc - Form callback: enables users to answer a makemeeting poll
- makemeeting_choices_submit in ./
makemeeting.field.inc - Submit handler to add more choices or suggestions to a poll form, or to copy the first row of suggestions to the others
- makemeeting_field_presave in ./
makemeeting.field.inc - Implements hook_field_presave().
- makemeeting_field_widget_form in ./
makemeeting.field.inc - Implements hook_field_widget_form().
- theme_makemeeting_answers in ./
makemeeting.theme.inc - Function used to render answers' table
File
- ./
makemeeting.module, line 174 - Hooks and field implementations
Code
function _makemeeting_date_timestamp($array) {
$date_str = "{$array['day']}-{$array['month']}-{$array['year']}";
return new DateTime($date_str);
}