uuid_services.admin.inc 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Administration functions for UUID Service module.
  5. */
  6. /**
  7. * Settings form for UUID Services.
  8. *
  9. * @return array
  10. * Configuration form structure.
  11. */
  12. function uuid_services_settings() {
  13. $form['uuid_services_support_all_entity_types'] = array(
  14. '#type' => 'checkbox',
  15. '#title' => t('Support all UUID entity types'),
  16. '#description' => t('Check this box to automatically provide Services integration for all entity types with UUID support.'),
  17. '#default_value' => variable_get('uuid_services_support_all_entity_types', FALSE),
  18. );
  19. $form['uuid_services_allowed_media_mimes'] = array(
  20. '#type' => 'textarea',
  21. '#title' => t('Allowed Media Mime type'),
  22. '#default_value' => variable_get('uuid_services_allowed_media_mimes', UUID_SERVICES_DEFAULT_ALLOWED_MEDIA_MIMES),
  23. '#cols' => 40,
  24. '#rows' => 5,
  25. '#description' => t("Enter one mime type per line you wish to allow in the system without extension. Example mime type '<em>video/brightcove</em>'."),
  26. );
  27. return system_settings_form($form);
  28. }