function xmlsitemap_link_enqueue in XML sitemap 7.2
Enqueue sitemap links to be updated via the xmlsitemap_link_process queue.
Parameters
string $type: The link type.
array|int $ids: An array of link IDs or a singular link ID.
1 call to xmlsitemap_link_enqueue()
- drush_xmlsitemap_queue_rebuild in ./
xmlsitemap.drush.inc - Dump and queue all the sitemap links to be rebuilt in a queue process.
File
- ./
xmlsitemap.module, line 1741 - xmlsitemap XML sitemap
Code
function xmlsitemap_link_enqueue($type, $ids) {
$data = array();
$data['type'] = $type;
$data['ids'] = is_array($ids) ? $ids : array(
$ids,
);
/** @var DrupalReliableQueueInterface $queue */
$queue = DrupalQueue::get('xmlsitemap_link_process');
$queue
->createItem($data);
}