Theme errors in D7

I'm trying to theme FullCalendar (http://drupal.org/fullcalendar) to show different colours for events based on taxonomy terms. There is some code provided here (http://drupal.org/node/910510#comment-3730530), which is:

<?php
/**
 * Implementation of theme_fullcalendar_classname().
 *
 * @param $node
 *   An object representing the node.
 *
 * @return
 *   A string suitable for use as a CSS class.
 */
function intranet_fullcalendar_classname($node) {
  $className = array(
    'fc-event-default',
    $node->type,
  );
  // Taxonomy Term IDs for coloring
  foreach ($node->taxonomy as $term_id) {
    $className[] = 'fc-event-tid-' . $term_id->tid;
  }
  return implode(' ', $className);
}
?>

But, this is throwing errors like:

Notice: Trying to get property of non-object in bartik_fullcalendar_classname() (line 16 of /home/gmak/public_html/themes/bartik/template.php).
Notice: Trying to get property of non-object in bartik_fullcalendar_classname() (line 19 of /home/gmak/public_html/themes/bartik/template.php).
Warning: Invalid argument supplied for foreach() in bartik_fullcalendar_classname() (line 19 of /home/gmak/public_html/themes/bartik/template.php).
Notice: Trying to get property of non-object in bartik_fullcalendar_classname() (line 16 of /home/gmak/public_html/themes/bartik/template.php).

Background import problems

Our company is new to Drupal but we are experimenting and hoping to replace our proprietary text/image/pdf archive of two newspapers (Philadelphia Inquirer and Daily News) with a Drupal 7 system.

order of hook_form_alter()

I have 2 modules that modify the registration form. I want profile2 to do the initial hook_form_alter(), and then I want a second module that I'm writing to modify a piece that profile2 changed. How do I control the order of the calls to hook_form_alter()?

"Structure" showing up on toolbar even though no authorization

Structure is showing up on the toolbar...even though a user has no permissions in this area. At least it comes up as "you are not authorized to view this page" -- but, if there's no permissions to this area, why is it showing up anyway?

Econova - an Environmental Blog

www.Econova.co is my personal blog on ecological innovation. I custom designed it based on the Zen starter theme, and it was my first Drupal-based project. It’s very simple—at this moment, its sole function is as a blogging platform.

I plan on covering innovative responses to climate change and sustainability issues.

Why Drupal 7? (I.e., why not Joomla or Wordpress?)
The key issue was expandability. I wanted a blog, first and foremost, but I also wanted something that could be more than a blog, should I choose to expand the website in the future. I had worked with both Joomla and Wordpress in the past, so I was aware of their qualities, but word on the street was that Drupal was massively scalable and expandable and moldable. I knew I could achieve my baseline requirements with Drupal, and possibly more.

Image Cache in core?

Hi,
on Image Cache project page is mentioned that the modul is in Drupal 7 part of core. But I cannot find it in core.
Could anybody advice me where I can find it?
thanks
Tomas

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x