You are here

function _signup_event_format_date in Signup 6.2

Same name and namespace in other branches
  1. 5.2 includes/event.5x-1.inc \_signup_event_format_date()
  2. 5.2 includes/event.5x-2.inc \_signup_event_format_date()
  3. 6 includes/event.6x-2.inc \_signup_event_format_date()
  4. 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.6x-2.inc, line 81

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]');
}