Project

General

Profile

Download (1.3 KB) Statistics
| Branch: | Tag: | Revision:

root / drupal-module / auquotidien.admin.inc @ 0bb989f9

1
<?php
2

    
3
function auquotidien_admin_settings() {
4

    
5
  $form['auquotidien_page_title'] = array(
6
    '#type' => 'textfield',
7
    '#title' => t('Page title'),
8
    '#default_value' => variable_get('auquotidien_page_title', t('Au quotidien')),
9
    '#description' => t('Page title that will be used on the <a href="!link">au quotidien page</a>.', array('!link' => url('auquotidien'))),
10
  );
11

    
12
  $form['auquotidien_message'] = array(
13
    '#type' => 'textarea',
14
    '#title' => t('Au quotidien message'),
15
    '#default_value' => variable_get('auquotidien_message', ''),
16
    '#cols' => 60,
17
    '#rows' => 5,
18
    '#description' => t('Define a message to be displayed above the au quotidien content.'),
19
  );
20
  $form['auquotidien_message_format'] = filter_form(variable_get('auquotidien_message_format', FILTER_FORMAT_DEFAULT));
21

    
22
  $form['auquotidien_url'] = array(
23
    '#type' => 'textfield',
24
    '#title' => t('URL'),
25
    '#default_value' => variable_get('auquotidien_url', ''),
26
    '#description' => t('URL of Au quotidien website'),
27
  );
28

    
29
  $form['auquotidien_css'] = array(
30
    '#type' => 'checkbox',
31
    '#title' => t('Do not include au quotidien CSS file'),
32
    '#default_value' => variable_get('auquotidien_css', 0),
33
    '#description' => t('Whether the au quotidien CSS file is included.'),
34
  );
35

    
36
  return system_settings_form($form);
37
}
(3-3/9)