Commit fcaefdfd authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Fixed oopsie in last commit.

parent 6bff35cf
......@@ -6,11 +6,9 @@
*/
function xmlsitemap_node_entity_info_alter(&$entity_info) {
foreach (node_type_get_names() as $type => $name) {
$types['node']['bundles'][$type] = array(
'xmlsitemap' => array(
'priority' => variable_get('xmlsitemap_node_priority_' . $type, 0.5),
'status' => variable_get('xmlsitemap_node_status_' . $type, 0),
),
$entity_info['node']['bundles'][$type]['xmlsitemap'] = array(
'priority' => variable_get('xmlsitemap_node_priority_' . $type, 0.5),
'status' => variable_get('xmlsitemap_node_status_' . $type, 0),
);
}
}
......
......@@ -6,11 +6,9 @@
*/
function xmlsitemap_taxonomy_entity_info_alter(&$entity_info) {
foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
$entity_info['taxonomy_term']['bundles'][$machine_name] = array(
'xmlsitemap' => array(
'priority' => variable_get('xmlsitemap_taxonomy_priority_' . $vocabulary->vid, 0.5),
'status' => variable_get('xmlsitemap_taxonomy_status_' . $vocabulary->vid, 0),
),
$entity_info['taxonomy_term']['bundles'][$machine_name]['xmlsitemap'] = array(
'priority' => variable_get('xmlsitemap_taxonomy_priority_' . $vocabulary->vid, 0.5),
'status' => variable_get('xmlsitemap_taxonomy_status_' . $vocabulary->vid, 0),
);
}
}
......
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