function xmlsitemap_user_xmlsitemap_process_user_links in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap_user/xmlsitemap_user.module \xmlsitemap_user_xmlsitemap_process_user_links()
Process user sitemap links.
Parameters
$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_xmlsitemap_link_info in xmlsitemap_user/
xmlsitemap_user.module - Implements hook_xmlsitemap_link_info().
File
- xmlsitemap_user/
xmlsitemap_user.module, line 65
Code
function xmlsitemap_user_xmlsitemap_process_user_links(array $uids) {
foreach ($uids as $uid) {
if ($account = user_load($uid)) {
$link = xmlsitemap_user_create_link($account);
xmlsitemap_link_save($link);
}
}
}