Commit 04b12b06 authored by andrei.dincu's avatar andrei.dincu
Browse files

Issue #2249723 by andrei.dincu: Add default value and description for change...

Issue #2249723 by andrei.dincu: Add default value and description for change frequency selection list
parent 272c2410
......@@ -1469,12 +1469,13 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
'#type' => 'select',
'#title' => t('Change frequency'),
'#options' => xmlsitemap_get_changefreq_options(),
'#default_value' => XMLSITEMAP_FREQUENCY_ALWAYS,
'#description' => t('Select the frequency of changes.'),
'#states' => array(
'invisible' => array(
'select[name="xmlsitemap[status]"]' => array('value' => '0'),
),
),
// '#value' => $node->xmlsitemap['changefreq'],
);
if (!$link['status_default']) {
// If the default status is excluded, add a visible state on the include
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment