Hi,

I have a Drupal 5.x running CCK, calendar and notify.
At this time we are getting notification messages when new events are posted in the calendar but the notifications are limited to title and body. The time field is not included... How to add the time start and end field to these notification messages?

Thanks for the help!

Comments

Kevin10EC’s picture

I am interested in the same thing. How did you set it up to get the fields you are already getting (Title & Body)? Also, did you by chance figure out how to limit the number of characters in the "body" field?

Thanks

Make everyday a Happy VOLiday!

willemt’s picture

Getting the title and body in the notification emails is a setting that can be made for users individually (you as admin or the user for his/her own profile).
Still don't know how to add date and time details though... Will post here if I am able to find something good.
Thanks.

willemt’s picture

Ok... so after some looking it seems I will have to change the below

$node_body .= ++$node_count .'. '. t('@title', array('@title' => $node->title)) ."\n";
        $node_body .= t('@status @type by @author', array('@status' => $status, '@type' => node_get_types('name', $node), '@author' => ($node->name ? $node->name : variable_get('anonymous', 'Anonymous')))) ."\n";
        $node_body .= '[ '. url('node/'. $node->nid, NULL, NULL, TRUE) ." ]\n\n";
        $node_body .= _notify_content($node, $user) ."\n";
      }

And somewhere in there add the fetching of field_time_value and field_time_value2 values...
How to get that done?

willemt’s picture

nobody?