| 1 |
<?php |
<?php |
| 2 |
// $Id: xmlsitemap_user.module,v 1.12.2.48 2009/02/28 12:32:00 kiam Exp $ |
// $Id: xmlsitemap_user.module,v 1.12.2.49 2009/02/28 21:00:58 kiam Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 83 |
FROM {xmlsitemap_user} |
FROM {xmlsitemap_user} |
| 84 |
WHERE uid = %d", $account->uid) |
WHERE uid = %d", $account->uid) |
| 85 |
); |
); |
|
if (!isset($form['xmlsitemap'])) { |
|
|
$form['xmlsitemap'] = array( |
|
|
'#type' => 'fieldset', |
|
|
'#title' => t('XML site map'), |
|
|
'#collapsible' => TRUE, |
|
|
'#access' => user_access('override profile settings') || user_access('administer users'), |
|
|
'#weight' => 7, |
|
|
); |
|
|
} |
|
| 86 |
$options = xmlsitemap_priority_options('both'); |
$options = xmlsitemap_priority_options('both'); |
| 87 |
if (isset($account->roles)) { |
if (isset($account->roles)) { |
| 88 |
$roles = array_keys($account->roles); |
$roles = array_keys($account->roles); |
| 102 |
} |
} |
| 103 |
$form['xmlsitemap']['xmlsitemap_user_priority'] = array( |
$form['xmlsitemap']['xmlsitemap_user_priority'] = array( |
| 104 |
'#type' => 'select', |
'#type' => 'select', |
| 105 |
'#title' => t('Priority'), |
'#title' => t('XML site map - user priority'), |
| 106 |
'#description' => t('The default priority is %priority.', array('%priority' => $options[(string)$default_priority])), |
'#description' => t('The default priority is %priority.', array('%priority' => $options[(string)$default_priority])), |
| 107 |
'#default_value' => $priority !== FALSE ? $priority : -2.0, |
'#default_value' => $priority !== FALSE ? $priority : -2.0, |
| 108 |
'#options' => $options, |
'#options' => $options, |