link.admin.inc 613 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @file
  4. * Link admin settings.
  5. */
  6. /**
  7. * Form constructor for the settings form.
  8. *
  9. * @ingroup forms
  10. */
  11. function link_admin_settings() {
  12. $form['link_default_protocol'] = array(
  13. '#type' => 'select',
  14. '#title' => t('Protocol'),
  15. '#options' => array(
  16. LINK_HTTP_PROTOCOL => strtoupper(LINK_HTTP_PROTOCOL),
  17. LINK_HTTPS_PROTOCOL => strtoupper(LINK_HTTPS_PROTOCOL),
  18. ),
  19. '#default_value' => variable_get('link_default_protocol', LINK_HTTP_PROTOCOL),
  20. '#description' => t('Select the default protocol to use for each link.'),
  21. );
  22. return system_settings_form($form);
  23. }