commons_event.module in Drupal Commons 6.2
File
modules/features/commons_event/commons_event.module
View source
<?php
include_once 'commons_event.features.inc';
function commons_event_og_features_registry() {
$registry = array();
$feature = new stdClass();
$feature->id = 'commons_event';
$feature->name = t('Events');
$feature->description = t('Enable your group members to announce events associated with your group, and display them on calendars & sidebar blocks.');
$feature->components = array(
'views' => array(
'group_tab_events',
'group_event_calendar',
),
'node' => array(
'event',
),
'context' => array(
'group-home-events',
'group-event-node',
),
);
$registry[$feature->id] = $feature;
return $registry;
}
function commons_event_form_event_node_form_alter(&$form, &$form_state) {
$form += array(
'#vertical_tabs' => array(
'group_event_details' => FALSE,
),
);
}