You are here

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';

/**
 * Implementation of hook_og_features_registry()
 */
function commons_event_og_features_registry() {
  $registry = array();

  // Feature: commons_event
  $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;
}

/**
 * Implementation of hook_form_FORM_ID_alter().
 */
function commons_event_form_event_node_form_alter(&$form, &$form_state) {

  // Prevent the event details fieldset from being hidden in vertical tabs.
  $form += array(
    '#vertical_tabs' => array(
      'group_event_details' => FALSE,
    ),
  );
}

Functions

Namesort descending Description
commons_event_form_event_node_form_alter Implementation of hook_form_FORM_ID_alter().
commons_event_og_features_registry Implementation of hook_og_features_registry()