/[drupal]/contributions/modules/og_minutes/og_minutes.module
ViewVC logotype

Contents of /contributions/modules/og_minutes/og_minutes.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Sun Sep 9 04:05:04 2007 UTC (2 years, 2 months ago) by davidlesieur
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
Changes since 1.2: +2 -14 lines
File MIME type: text/x-php
#155669 by csc4 and me: Port to 5.x.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_minutes_event_attendees() (invoked by the Minutes module).
6 */
7 function og_minutes_minutes_event_attendees($op, $event = NULL) {
8 if (module_exists('og')) {
9 switch ($op) {
10 case 'title':
11 return t('Group members');
12 case 'filter':
13 $groups = og_get_node_groups($event);
14 if (count($groups) > 0) {
15 return array(
16 'join' => array('INNER JOIN {og_uid} og_uid ON u.uid = og_uid.uid'),
17 'condition' => array('og_uid.nid IN ('. implode(',', array_keys($groups)) .')')
18 );
19 }
20 break;
21 }
22 }
23 }

  ViewVC Help
Powered by ViewVC 1.1.2