You are here

function xmlsitemap_user_xmlsitemap_process_user_links in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_user/xmlsitemap_user.module \xmlsitemap_user_xmlsitemap_process_user_links()

Process user sitemap links.

Parameters

array $uids: An array of user IDs.

1 call to xmlsitemap_user_xmlsitemap_process_user_links()
xmlsitemap_user_xmlsitemap_index_links in xmlsitemap_user/xmlsitemap_user.module
Implements hook_xmlsitemap_index_links().
1 string reference to 'xmlsitemap_user_xmlsitemap_process_user_links'
xmlsitemap_user_entity_info_alter in xmlsitemap_user/xmlsitemap_user.module
Implements hook_entity_info_alter().

File

xmlsitemap_user/xmlsitemap_user.module, line 41
Default file for XML sitemap user.

Code

function xmlsitemap_user_xmlsitemap_process_user_links(array $uids) {
  $accounts = user_load_multiple($uids);
  foreach ($accounts as $account) {
    $link = xmlsitemap_user_create_link($account);
    xmlsitemap_link_save($link, array(
      $link['type'] => $account,
    ));
  }
}