You are here

function xmlsitemap_link_queue_process in XML sitemap 7.2

Queue callback for processing sitemap links.

1 string reference to 'xmlsitemap_link_queue_process'
xmlsitemap_cron_queue_info in ./xmlsitemap.module
Implements hook_cron_queue_info().

File

./xmlsitemap.module, line 1725
xmlsitemap XML sitemap

Code

function xmlsitemap_link_queue_process($data) {
  $info = xmlsitemap_get_link_info($data['type']);
  $ids = isset($data['ids']) ? $data['ids'] : array(
    $data['id'],
  );
  if (function_exists($info['xmlsitemap']['process callback'])) {
    $info['xmlsitemap']['process callback']($ids);
  }
}