respondjs.admin.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @file
  4. * Serves administrative pages for the Respond.js module
  5. */
  6. /**
  7. * Implements hook_admin().
  8. *
  9. * Respond.js administration settings
  10. */
  11. function respondjs_admin() {
  12. $form = array();
  13. $form['respondjs_scope'] = array(
  14. '#type' => 'select',
  15. '#title' => t('Where should respond.js be included?'),
  16. '#description' => t('A script with a significant visual impact like respond.js belongs in the &lt;head&gt; of a document.<br> However, in some cases it causes problems and you can move it to the footer using this configuration option.'),
  17. '#options' => array(
  18. 'header' => t('header'),
  19. 'footer' => t('footer'),
  20. ),
  21. '#default_value' => variable_get('respondjs_scope', RESPONDJS_SCOPE_DEFAULT),
  22. );
  23. $form['respondjs_quiet'] = array(
  24. '#type' => 'checkbox',
  25. '#title' => t('Do not warn me about CSS aggregation.'),
  26. '#description' => t('Check this box if you\'d rather not see the warning about CSS aggregation.<br> Disabling the warning will not make the respond.js function properly, but it will suppress the error message.'),
  27. '#default_value' => variable_get('respondjs_quiet', RESPONDJS_QUIET_DEFAULT),
  28. );
  29. return system_settings_form($form);
  30. }