root/drupal-module/auquotidien.admin.inc @ 507079e2
| 0bb989f9 | Frédéric Péters | <?php
|
|
function auquotidien_admin_settings() {
|
|||
$form['auquotidien_page_title'] = array(
|
|||
'#type' => 'textfield',
|
|||
'#title' => t('Page title'),
|
|||
'#default_value' => variable_get('auquotidien_page_title', t('Au quotidien')),
|
|||
'#description' => t('Page title that will be used on the <a href="!link">au quotidien page</a>.', array('!link' => url('auquotidien'))),
|
|||
);
|
|||
$form['auquotidien_message'] = array(
|
|||
'#type' => 'textarea',
|
|||
'#title' => t('Au quotidien message'),
|
|||
'#default_value' => variable_get('auquotidien_message', ''),
|
|||
'#cols' => 60,
|
|||
'#rows' => 5,
|
|||
'#description' => t('Define a message to be displayed above the au quotidien content.'),
|
|||
);
|
|||
$form['auquotidien_message_format'] = filter_form(variable_get('auquotidien_message_format', FILTER_FORMAT_DEFAULT));
|
|||
$form['auquotidien_url'] = array(
|
|||
'#type' => 'textfield',
|
|||
'#title' => t('URL'),
|
|||
'#default_value' => variable_get('auquotidien_url', ''),
|
|||
'#description' => t('URL of Au quotidien website'),
|
|||
);
|
|||
$form['auquotidien_css'] = array(
|
|||
'#type' => 'checkbox',
|
|||
'#title' => t('Do not include au quotidien CSS file'),
|
|||
'#default_value' => variable_get('auquotidien_css', 0),
|
|||
'#description' => t('Whether the au quotidien CSS file is included.'),
|
|||
);
|
|||
return system_settings_form($form);
|
|||
}
|