You are here

civicrm_event_og_config_sample.module in CiviCRM Entity 7.2

File

features/civicrm_event_og_config_sample/civicrm_event_og_config_sample.module
View source
<?php

/**
 * @file
 * Code for the CiviCRM Event OG Config (sample) feature.
 */
include_once 'civicrm_event_og_config_sample.features.inc';

/**
 * Implements hook_variable_info().
 */
function civicrm_event_og_config_sample_variable_info($options) {
  if (!civicrm_initialize(TRUE)) {
    return;
  }

  // This is the very minimum we need, some descriptive name.
  $options = array();

  #civicrm_api('event', 'getoptions', array('version' => 3, 'field' => 'event_type_id'));
  $variable['civicrm_event_og_config_sample_types'] = array(
    'title' => t('Event types for which OGs should be created', array(), $options),
    'type' => 'options',
    'description' => 'Specify Event Types to be Synced with OG',
    'options' => $options,
    'default' => array(
      1,
    ),
    'token' => TRUE,
  );
  return $variable;
}