contrib modules security updates
This commit is contained in:
@@ -105,7 +105,7 @@ function xmlsitemap_sitemap_list_form() {
|
||||
'#type' => 'tableselect',
|
||||
'#header' => $header,
|
||||
'#options' => $options,
|
||||
'#empty' => t('No XML sitemaps available.') . ' ' . l('Add a new XML sitemap', 'admin/config/search/xmlsitemap/add'),
|
||||
'#empty' => t('No XML sitemaps available.') . ' ' . l(t('Add a new XML sitemap'), 'admin/config/search/xmlsitemap/add'),
|
||||
);
|
||||
return $form;
|
||||
}
|
||||
@@ -348,6 +348,22 @@ function xmlsitemap_settings_form($form, &$form_state) {
|
||||
'#title' => t('Enable developer mode to expose additional settings.'),
|
||||
'#default_value' => variable_get('xmlsitemap_developer_mode', 0),
|
||||
);
|
||||
$form['advanced']['xmlsitemap_disable_cron_regeneration'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Disable cron generation of sitemap files.'),
|
||||
'#default_value' => variable_get('xmlsitemap_disable_cron_regeneration', 0),
|
||||
'#description' => t('This can be disabled if other methods are being used to generate the sitemap files, like <em>drush xmlsitemap-regenerate</em>.'),
|
||||
);
|
||||
$form['advanced']['xmlsitemap_output_elements'] = array(
|
||||
'#type' => 'checkboxes',
|
||||
'#title' => t('Enable or disable the individual @loc elements from output', array('@loc' => '<loc>')),
|
||||
'#options' => array(
|
||||
'lastmod' => t('Last modification date: @lastmod', array('@lastmod' => '<lastmod>')),
|
||||
'changefreq' => t('Change frequency: @changfreq', array('@changfreq' => '<changefreq>')),
|
||||
'priority' => t('Priority: @priority', array('@priority' => '<priority>')),
|
||||
),
|
||||
'#default_value' => drupal_map_assoc(variable_get('xmlsitemap_output_elements', array('lastmod', 'changefreq', 'priority'))),
|
||||
);
|
||||
|
||||
$form['xmlsitemap_settings'] = array(
|
||||
'#type' => 'vertical_tabs',
|
||||
@@ -355,7 +371,7 @@ function xmlsitemap_settings_form($form, &$form_state) {
|
||||
);
|
||||
|
||||
$entities = xmlsitemap_get_link_info(NULL, TRUE);
|
||||
module_load_all_includes('inc', 'xmlsitemap');
|
||||
module_load_all_includes('xmlsitemap.inc');
|
||||
foreach ($entities as $entity => $entity_info) {
|
||||
$form[$entity] = array(
|
||||
'#type' => 'fieldset',
|
||||
|
||||
Reference in New Issue
Block a user