Projet

Général

Profil

Paste
Télécharger (613 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / link / link.admin.inc @ bad4e148

1
<?php
2

    
3
/**
4
 * @file
5
 * Link admin settings.
6
 */
7

    
8
/**
9
 * Form constructor for the settings form.
10
 *
11
 * @ingroup forms
12
 */
13
function link_admin_settings() {
14
  $form['link_default_protocol'] = array(
15
    '#type' => 'select',
16
    '#title' => t('Protocol'),
17
    '#options' => array(
18
      LINK_HTTP_PROTOCOL => strtoupper(LINK_HTTP_PROTOCOL),
19
      LINK_HTTPS_PROTOCOL => strtoupper(LINK_HTTPS_PROTOCOL),
20
    ),
21
    '#default_value' => variable_get('link_default_protocol', LINK_HTTP_PROTOCOL),
22
    '#description' => t('Select the default protocol to use for each link.'),
23
  );
24

    
25
  return system_settings_form($form);
26
}