function opigno_calendar_app_get_node_duration in Opigno Calendar App 7
File
- ./
opigno_calendar_app.module, line 32 - Module file. Defines module hooks.
Code
function opigno_calendar_app_get_node_duration($node) {
if (isset($node->opigno_calendar_date[LANGUAGE_NONE][0]['value']) && isset($node->opigno_calendar_date[LANGUAGE_NONE][0]['value2'])) {
return strtotime($node->opigno_calendar_date[LANGUAGE_NONE][0]['value2']) - strtotime($node->opigno_calendar_date[LANGUAGE_NONE][0]['value']);
}
return 0;
}