security update core+modules
This commit is contained in:
@@ -1,5 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Implements hook_menu().
|
||||
*/
|
||||
function date_views_menu() {
|
||||
// Used to import files from a local filesystem into Drupal.
|
||||
$items['admin/config/regional/date-time/date-views'] = array(
|
||||
'title' => 'Date views',
|
||||
'description' => 'Configure settings for date views.',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('date_views_settings'),
|
||||
'access arguments' => array('administer site configuration '),
|
||||
'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Form callback for date views settings.
|
||||
*/
|
||||
function date_views_settings($form, &$form_state) {
|
||||
|
||||
$form['date_views_month_format_with_year'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Date views month format with year'),
|
||||
'#size' => 10,
|
||||
'#default_value' => variable_get('date_views_month_format_with_year', 'F Y'),
|
||||
'#description' => t('Date views month format with year, default value : F Y'),
|
||||
);
|
||||
|
||||
$form['date_views_month_format_without_year'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Date views month format without year'),
|
||||
'#size' => 10,
|
||||
'#default_value' => variable_get('date_views_month_format_without_year', 'F'),
|
||||
'#description' => t('Date views month format without year, default value : F'),
|
||||
);
|
||||
|
||||
$form['date_views_day_format_with_year'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Date views day format with year'),
|
||||
'#size' => 10,
|
||||
'#default_value' => variable_get('date_views_day_format_with_year', 'l, F j, Y'),
|
||||
'#description' => t('Date views day format with year, default value : l, F j, Y'),
|
||||
);
|
||||
|
||||
$form['date_views_day_format_without_year'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Date views day format without year'),
|
||||
'#size' => 10,
|
||||
'#default_value' => variable_get('date_views_day_format_without_year', 'l, F j'),
|
||||
'#description' => t('Date views day format without year, default value : l, F j'),
|
||||
);
|
||||
|
||||
$form['date_views_week_format_with_year'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Date views week format with year'),
|
||||
'#size' => 10,
|
||||
'#default_value' => variable_get('date_views_week_format_with_year', 'F j, Y'),
|
||||
'#description' => t('Date views week format with year, default value : F j, Y'),
|
||||
);
|
||||
|
||||
$form['date_views_week_format_without_year'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Date views week format without year'),
|
||||
'#size' => 10,
|
||||
'#default_value' => variable_get('date_views_week_format_without_year', 'F j'),
|
||||
'#description' => t('Date views week format without year, default value : F j'),
|
||||
);
|
||||
|
||||
return system_settings_form($form);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user