Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
That should be very easy, since the module is really small. We need to add an .info file, change a call from module_exist() to module_exists() and that could be pretty much done. However, changes in OG or Minutes may or may not require more work.
If anyone wants to try this, it will be welcome, as I'm not sure I'll have time soon.
I've had a go - seems to install ok and (provided you remember to set the filter in /admin/content/types/event) seems to filter to the group members. I don't have patchability though - but the change was almost exactly as described above.
Not sure what to do about the version number for the module though.
og_minutes.info
name = OG Minutes
description = "Makes Organic groups and Minutes work together. It allows to filter users so that the list of potential attendees in Minutes shows only the members of the group(s) to which the related event belongs."
dependencies = og
package = "Organic groups"
; Information added by drupal.org packaging script on 2007-01-02
version = "5.x-1.x-dev"
project = "og_minutes"
og_minutes.module
<?php
// $Id: og_minutes.module,v 1.1.2.2a 2007/07/09 02:14:00 davidlesieur Exp $
/**
* Implementation of hook_help().
*/
function og_minutes_help($section) {
switch ($section) {
case 'admin/help#og':
break;
case 'admin/modules#description':
return t("This module makes Organic groups and Minutes work together. It allows to filter users so that the list of potential attendees in Minutes shows only the members of the group(s) to which the event belongs. <em>Note: Requires Organic groups and Minutes</em>.");
}
}
/**
* Implementation of hook_minutes_event_attendees() (invoked by the Minutes module).
*/
function og_minutes_minutes_event_attendees($op, $event = NULL) {
if (module_exists('og')) {
switch ($op) {
case 'title':
return t('Group members');
case 'filter':
$groups = og_get_node_groups($event);
if (count($groups) > 0) {
return array(
'join' => array('INNER JOIN {og_uid} og_uid ON u.uid = og_uid.uid'),
'condition' => array('og_uid.nid IN ('. implode(',', array_keys($groups)) .')')
);
}
break;
}
}
}
Comments
Comment #1
David Lesieur commentedThat should be very easy, since the module is really small. We need to add an .info file, change a call from module_exist() to module_exists() and that could be pretty much done. However, changes in OG or Minutes may or may not require more work.
If anyone wants to try this, it will be welcome, as I'm not sure I'll have time soon.
Comment #2
csc4 commentedI've had a go - seems to install ok and (provided you remember to set the filter in /admin/content/types/event) seems to filter to the group members. I don't have patchability though - but the change was almost exactly as described above.
Not sure what to do about the version number for the module though.
og_minutes.info
og_minutes.module
Comment #3
David Lesieur commentedComment #4
David Lesieur commentedCommitted with some slight changes. Thanks!
Comment #5
(not verified) commented