You are here

function commons_poll_og_features_registry in Drupal Commons 6.2

Implementation of hook_og_features_registry()

File

modules/features/commons_poll/commons_poll.module, line 20

Code

function commons_poll_og_features_registry() {
  $registry = array();

  // Feature: commons_poll
  $feature = new stdClass();
  $feature->id = 'commons_poll';
  $feature->name = t('Topic polls');
  $feature->description = t('Enable your group members to create multiple-choice polls that other group members can vote on.');
  $feature->components = array(
    'views' => array(
      'group_tab_polls',
    ),
    'node' => array(
      'poll',
    ),
    'context' => array(
      'group-home-poll',
      'group-tab-polls',
      'group-poll-node',
    ),
  );
  $registry[$feature->id] = $feature;
  return $registry;
}