Hi all,

For some reason, in my installation, the Calendar Block always shows the first of the month as the first day in the first week (for instance, for September 2009, the first is a Sunday, same for October 2009).

Is this something that should be set in my module's hook_calendar_block, or is this a bug?

my implementation of hook_calendar_block:

function sas_events_calendar_block(&$calendar, &$date, $op) {
  switch($op) {
    case 'alter':
      $date->content = l($date->day, 'sas_events/'.$date->year.'-'.$date->month.'-'.$date->day);
      break;
  }
}

Thanks!

Comments

marge123’s picture

I encountered the same problem, but am working with version 5.x-2.1, so this suggestion may or may not help.

On this page, http://drupal.org/node/365560, there is a correction to the JSON code in the module that works for me.

Hope this helps.

rickward’s picture

Thank you for the suggestion! Worked perfectly.