You are here

function theme_fullcalendar_link in FullCalendar 6

Same name and namespace in other branches
  1. 7 fullcalendar.module \theme_fullcalendar_link()

Sets the text for the fallback display.

1 theme call to theme_fullcalendar_link()
template_preprocess_views_view_node_fullcalendar in ./fullcalendar.module
Prepares variables for template file invoked for node row type.

File

./fullcalendar.module, line 321
Provides a views style plugin for FullCalendar

Code

function theme_fullcalendar_link($node, $attributes, $index = 0) {
  $text = date_format_date($attributes['start']);
  if (!$attributes['allDay']) {
    $text .= ' to ' . date_format_date($attributes['end']);
  }
  $attributes['index'] = $index;
  $attributes['start'] = date_format($attributes['start'], DATE_FORMAT_DATETIME);
  $attributes['end'] = date_format($attributes['end'], DATE_FORMAT_DATETIME);
  return l($text, $node->url, array(
    'attributes' => $attributes,
  ));
}