commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / drupal / modules / civicrm_rules / civicrm_rules_admin_form.inc
1 <?php
2 function civicrm_rules_admin_settings($form_state = NULL) {
3
4 $form['civicrm_rules_post_entities'] = array(
5 '#title' => t("Entities enabled for Post Rules"),
6 '#type' => 'checkboxes',
7 '#options' => _civicrm_rules_admin_getEntities(),
8 '#description' => t('Which Entities Do you want POST rules activated for'),
9 '#default_value' => variable_get('civicrm_rules_post_entities', array()),
10 );
11
12 return system_settings_form($form);
13 }
14
15 function _civicrm_rules_admin_getEntities() {
16 //Todo Use civicrm_api('Entities', 'Get', array('version' => 3));
17 // to extend entities to all API entities
18 return array('event' => 'Event', 'participant' => 'Participant');
19 }
20