You are here

function services_client_services_settings in Services Client 7.2

Form callback;

Allow to configure which entity types should be. handled by Acquia Services Entity module

1 string reference to 'services_client_services_settings'
services_client_services_menu in services_client_services/services_client_services.module
Implements hook_menu().

File

services_client_services/services_client_services.module, line 91
Provides services that can be installed on remote site which makes configuring events easier.

Code

function services_client_services_settings($form, &$form_state) {
  $form = array();
  $options = array_map(function ($item) {
    return $item['label'];
  }, entity_get_info());
  asort($options);
  $form['services_client_services_uuid_entities'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Entities'),
    '#description' => t('Select entities that should be handled by Acquia Services Entity module.'),
    '#options' => $options,
    '#default_value' => variable_get('services_client_services_uuid_entities', array()),
  );
  $form = system_settings_form($form);
  $form['#submit'][] = 'services_client_services_settings_submit';
  return $form;
}