Hello,

I have a module that implements start and end dates, and I'm using calendar to display it. But right now it doesn't pick up the end date, so among other understandable problems, multi-day events don't show up.

Here's some of the relevant code that I suspect may contain the problem:

function gevent_views_data() {
  $data['gevent']['table']['group'] = t('Groupanizer Event');

  $data['gevent']['table']['base'] = array(
    'field' => 'nid',
    'title' => t('Example table'),
    'help' => t("Example table contains example content and can be related to nodes."),
    'weight' => -10,
  );

  $data['gevent']['table']['join'] = array(
    'node' => array(
    'left_field' => 'nid',
    'field' => 'nid',
    ),
  );

  $data['gevent']['start'] = array(
    'title' => t('Start'),
    'help' => t('Just a timestamp field.'),
    'field' => array(
      'handler' => 'views_handler_field_date',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort_date',
    ),
    'filter' => array(
      'handler' => 'views_handler_filter_date',
    ),
  );

  $data['gevent']['end'] = array(
    'title' => t('End'),
    'help' => t('Just a timestamp field.'),
    'field' => array(
      'handler' => 'views_handler_field_date',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort_date',
    ),
    'filter' => array(
      'handler' => 'views_handler_filter_date',
    ),
  );

  return $data;  
}

Anything stand out that would be causing my problem?

As another thread, I saw a reference in some documentation for the 5.x calendar to a hook called "hook_calendar_add_items" or some such. Is there anything like this in 6.x, or is views-enabling my only alternative?

Thanks! Been struggling with this (on and off) for more than a year! My how time flies...

Best regards,
Tom

Comments

tmetzger’s picture

I'm finding it very frustrating that nobody will answer this question. Any suggestions about where I can get an answer? It doesn't have to be for free.

Thanks,
Tom

Artusamak’s picture

Status: Active » Closed (outdated)

6.x is entirely unmaintained.