You are here

function _signup_event_format_date in Signup 5.2

Same name in this branch
  1. 5.2 includes/event.5x-1.inc \_signup_event_format_date()
  2. 5.2 includes/event.5x-2.inc \_signup_event_format_date()
Same name and namespace in other branches
  1. 6.2 includes/event.6x-2.inc \_signup_event_format_date()
  2. 6 includes/event.6x-2.inc \_signup_event_format_date()
  3. 7 includes/event.6x-2.inc \_signup_event_format_date()
1 call to _signup_event_format_date()
signup_format_date in includes/scheduler.inc

File

includes/event.5x-2.inc, line 86
Code required to support version 5.x-2.* of the event module.

Code

function _signup_event_format_date($node) {
  $event_date = array();
  if (!empty($node->event['start'])) {
    $event_date = event_explode_date($node->event['start']);
  }
  elseif (!empty($node->event_start)) {
    $event_date = event_explode_date($node->event_start);
  }
  return !empty($event_date) ? event_format_date($event_date, variable_get('signup_date_format', 'medium')) : t('[Untimed]');
}