better_formats.admin_settings.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @file
  4. * Contains FAPI and theme functions for the format settings form.
  5. */
  6. /**
  7. * FAPI form builder for admin/settings/filters/settings page.
  8. *
  9. * @see better_formats_menu()
  10. */
  11. function better_formats_admin_settings_form($form, &$form_state) {
  12. $form = array();
  13. $form['control'] = array(
  14. '#type' => 'fieldset',
  15. '#title' => t('Control'),
  16. );
  17. $form['control']['better_formats_per_field_core'] = array(
  18. '#type' => 'checkbox',
  19. '#title' => t('Use field default'),
  20. '#description' => t('Use the core field module default value to set the default format. This will force the default format even when the default field value is empty. To set a default format you must re-edit a text field after saving it with the "Filtered text" option turned on.'),
  21. '#default_value' => variable_get('better_formats_per_field_core', 0),
  22. );
  23. /*
  24. $form['control']['better_formats_per_node_type'] = array(
  25. '#type' => 'checkbox',
  26. '#title' => t('Control formats per node type'),
  27. '#description' => t('Control formats allowed and default formats per node type. Global settings will be used until a content type admin page is saved.'),
  28. '#default_value' => variable_get('better_formats_per_node_type', 0),
  29. );
  30. */
  31. return system_settings_form($form);
  32. }