You are here

function xmlsitemap_user_xmlsitemap_link_info in XML sitemap 6.2

Implements hook_xmlsitemap_link_info().

File

xmlsitemap_user/xmlsitemap_user.module, line 6

Code

function xmlsitemap_user_xmlsitemap_link_info() {
  $types['user'] = array(
    'label' => t('Users'),
    'bundle label' => t('User'),
    'base table' => 'users',
    'entity keys' => array(
      'id' => 'uid',
    ),
    'bundles' => array(
      'user' => array(
        'label' => t('User'),
        'admin' => array(
          'path' => 'admin/user/settings',
          'access arguments' => array(
            'administer users',
          ),
        ),
      ),
    ),
    'uri callback' => 'xmlsitemap_user_uri',
    'load hook' => 'user_load',
    'xmlsitemap' => array(
      'process callback' => 'xmlsitemap_user_xmlsitemap_process_user_links',
    ),
  );
  return $types;
}