You are here

function _xmlsitemap_node_priority_operations in XML sitemap 6

Node operations callback.

1 string reference to '_xmlsitemap_node_priority_operations'
xmlsitemap_node_node_operations in xmlsitemap_node/xmlsitemap_node.module
Implementation of hook_node_operations().

File

xmlsitemap_node/xmlsitemap_node.module, line 423
Adds nodes to the sitemap.

Code

function _xmlsitemap_node_priority_operations($nodes, $priority) {
  if (count($nodes)) {
    $batch = array(
      'operations' => array(
        array(
          '_xmlsitemap_node_batch_process',
          array(
            $nodes,
            $priority,
          ),
        ),
      ),
      'finished' => 'xmlsitemap_batch_operations_finished',
      'title' => t('Processing'),
      'progress_message' => '',
      'error_message' => t('The update has encountered an error.'),
    );
    batch_set($batch);
  }
}