You are here

function xmlsitemap_user_form_fieldset in XML sitemap 6

Return an array used to add additional form fields in the user form.

1 call to xmlsitemap_user_form_fieldset()
xmlsitemap_user_user in xmlsitemap_user/xmlsitemap_user.module
Implementation of hook_user().

File

./xmlsitemap.module, line 403
Creates a sitemap compatible with the sitemaps.org schema.

Code

function xmlsitemap_user_form_fieldset() {
  static $done = FALSE;
  $form = array();
  if (!$done) {
    $form['xmlsitemap'] = array(
      '#type' => 'fieldset',
      '#title' => t('XML sitemap'),
      '#collapsible' => TRUE,
      '#access' => user_access('override profile settings') || user_access('administer users'),
      '#weight' => 7,
    );
    $done = TRUE;
  }
  return $form;
}