function xmlsitemap_node_node_operations in XML sitemap 6
Implementation of hook_node_operations().
File
- xmlsitemap_node/
xmlsitemap_node.module, line 182 - Adds nodes to the sitemap.
Code
function xmlsitemap_node_node_operations() {
$operations = array(
'xmlsitemap_add_nodes' => array(
'label' => t('Add the selected posts to the XML sitemap'),
'callback' => '_xmlsitemap_node_priority_operations',
'callback arguments' => array(
'priority' => 0.5,
),
),
'xmlsitemap_change_nodes_priority' => array(
'label' => t('Change the XML sitemap priority of the selected posts to default'),
'callback' => '_xmlsitemap_node_priority_operations',
'callback arguments' => array(
'priority' => -2.0,
),
),
'xmlsitemap_remove_nodes' => array(
'label' => t('Remove the selected posts from the XML sitemap'),
'callback' => '_xmlsitemap_node_priority_operations',
'callback arguments' => array(
'priority' => -1.0,
),
),
);
return $operations;
}