function civicrm_event_og_config_sample_variable_info in CiviCRM Entity 7.2
Same name and namespace in other branches
- 7 features/civicrm_event_og_config_sample/civicrm_event_og_config_sample.module \civicrm_event_og_config_sample_variable_info()
Implements hook_variable_info().
File
- features/
civicrm_event_og_config_sample/ civicrm_event_og_config_sample.module, line 12
Code
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;
}