@@ -37,7 +37,7 @@ function node_help($path, $arg) {
case'admin/help#node':
$output='<p>'.t('The node module manages content on your site, and stores all posts (regardless of type) as a "node" . In addition to basic publishing settings, including whether the post has been published, promoted to the site front page, or should remain present (or sticky) at the top of lists, the node module also records basic information about the author of a post. Optional revision control over edits is available. For additional functionality, the node module is often extended by other modules.').'</p>';
$output.='<p>'.t('Though each post on your site is a node, each post is also of a particular <a href="@content-type">content type</a>. <a href="@content-type">Content types</a> are used to define the characteristics of a post, including the title and description of the fields displayed on its add and edit pages. Each content type may have different default settings for <em>Publishing options</em> and other workflow controls. By default, the two content types in a standard Drupal installation are <em>Page</em> and <em>Story</em>. Use the <a href="@content-type">content types page</a> to add new or edit existing content types. Additional content types also become available as you enable additional core, contributed and custom modules.',array('@content-type'=>url('admin/structure/types'))).'</p>';
$output.='<p>'.t('The administrative <a href="@content">content page</a> allows you to review and manage your site content. The node module makes a number of permissions available for each content type, which may be set by role on the <a href="@permissions">permissions page</a>.',array('@content'=>url('admin/content'),'@permissions'=>url('admin/user/permissions'))).'</p>';
$output.='<p>'.t('The administrative <a href="@content">content page</a> allows you to review and manage your site content. The node module makes a number of permissions available for each content type, which may be set by role on the <a href="@permissions">permissions page</a>.',array('@content'=>url('admin/content'),'@permissions'=>url('admin/settings/permissions'))).'</p>';
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@node">Node module</a>.',array('@node'=>'http://drupal.org/handbook/modules/node/')).'</p>';
'#description'=>t('The category the new field should be part of. Categories are used to group fields logically. An example category is "Personal information".'),
'#required'=>TRUE,
);
...
...
@@ -361,7 +361,7 @@ function profile_field_form_submit($form, &$form_state) {
->fields($values)
->execute();
drupal_set_message(t('The field has been created.'));
watchdog('profile','Profile field %field added under category %category.',array('%field'=>$form_state['values']['title'],'%category'=>$form_state['values']['category']),WATCHDOG_NOTICE,l(t('view'),'admin/user/profile'));
watchdog('profile','Profile field %field added under category %category.',array('%field'=>$form_state['values']['title'],'%category'=>$form_state['values']['category']),WATCHDOG_NOTICE,l(t('view'),'admin/settings/profile'));
}
else{
db_update('profile_field')
...
...
@@ -373,7 +373,7 @@ function profile_field_form_submit($form, &$form_state) {
cache_clear_all();
menu_rebuild();
$form_state['redirect']='admin/user/profile';
$form_state['redirect']='admin/settings/profile';
return;
}
...
...
@@ -390,8 +390,8 @@ function profile_field_delete(&$form_state, $fid) {
t('Are you sure you want to delete the field %field?',array('%field'=>$field->title)),'admin/user/profile',
t('This action cannot be undone. If users have entered values into this field in their profile, these entries will also be deleted. If you want to keep the user-entered data, instead of deleting the field you may wish to <a href="@edit-field">edit this field</a> and change it to a hidden profile field so that it may only be accessed by administrators.',array('@edit-field'=>url('admin/user/profile/edit/'.$fid))),
t('Are you sure you want to delete the field %field?',array('%field'=>$field->title)),'admin/settings/profile',
t('This action cannot be undone. If users have entered values into this field in their profile, these entries will also be deleted. If you want to keep the user-entered data, instead of deleting the field you may wish to <a href="@edit-field">edit this field</a> and change it to a hidden profile field so that it may only be accessed by administrators.',array('@edit-field'=>url('admin/settings/profile/edit/'.$fid))),
t('Delete'),t('Cancel'));
}
...
...
@@ -409,9 +409,9 @@ function profile_field_delete_submit($form, &$form_state) {
cache_clear_all();
drupal_set_message(t('The field %field has been deleted.',array('%field'=>$form_state['values']['title'])));
watchdog('profile','Profile field %field deleted.',array('%field'=>$form_state['values']['title']),WATCHDOG_NOTICE,l(t('view'),'admin/user/profile'));
watchdog('profile','Profile field %field deleted.',array('%field'=>$form_state['values']['title']),WATCHDOG_NOTICE,l(t('view'),'admin/settings/profile'));
@@ -43,7 +43,7 @@ function profile_help($path, $arg) {
$output.='<li>'.t('date').'</li></ul>';
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@profile">Profile module</a>.',array('@profile'=>'http://drupal.org/handbook/modules/profile/')).'</p>';
return$output;
case'admin/user/profile':
case'admin/settings/profile':
return'<p>'.t("This page displays a list of the existing custom profile fields to be displayed on a user's <em>My Account</em> page. To provide structure, similar or related fields may be placed inside a category. To add a new category (or edit an existing one), edit a profile field and provide a new category name. To change the category of a field or the order of fields within a category, grab a drag-and-drop handle under the Title column and drag the field to a new location in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the <em>Save configuration</em> button at the bottom of the page.").'</p>';
}
}
...
...
@@ -82,34 +82,34 @@ function profile_menu() {
'access arguments'=>array('access user profiles'),
'type'=>MENU_SUGGESTED_ITEM,
);
$items['admin/user/profile']=array(
$items['admin/settings/profile']=array(
'title'=>'Profiles',
'description'=>'Create customizable fields for your users.',
'#description'=>t('Select which profile fields you wish to display in the block. Only fields designated as public in the <a href="@profile-admin">profile field configuration</a> are available.',array('@profile-admin'=>url('admin/user/profile'))),
'#description'=>t('Select which profile fields you wish to display in the block. Only fields designated as public in the <a href="@profile-admin">profile field configuration</a> are available.',array('@profile-admin'=>url('admin/settings/profile'))),
@@ -14,7 +14,7 @@ function statistics_help($path, $arg) {
case'admin/help#statistics':
$output='<p>'.t('The statistics module keeps track of numerous site usage statistics, including the number of times, and from where, each of your posts is viewed. These statistics are useful in determining how users are interacting with each other and with your site, and are required for the display of some Drupal blocks.').'</p>';
$output.='<ul><li>'.t('a counter for each post on your site that increments each time the post is viewed. (Enable <em>Count content views</em> on the <a href="@statistics-settings">statistics settings page</a>, and determine if the post access counters should be visible to any user roles on the <a href="@permissions">permissions page</a>.)',array('@statistics-settings'=>url('admin/settings/statistics'),'@permissions'=>url('admin/user/permissions'))).'</li>';
$output.='<ul><li>'.t('a counter for each post on your site that increments each time the post is viewed. (Enable <em>Count content views</em> on the <a href="@statistics-settings">statistics settings page</a>, and determine if the post access counters should be visible to any user roles on the <a href="@permissions">permissions page</a>.)',array('@statistics-settings'=>url('admin/settings/statistics'),'@permissions'=>url('admin/settings/permissions'))).'</li>';
$output.='<li>'.t('a <a href="@recent-hits">recent hits</a> log that displays information about the latest activity on your site, including the URL and title of the page accessed, the user name (if available) and IP address of the accessing party.',array('@recent-hits'=>url('admin/reports/hits'))).'</li>';
$output.='<li>'.t('a <a href="@top-referrers">top referrers</a> log that displays the referring parties for your site visits (where your visitors came from).',array('@top-referrers'=>url('admin/reports/referrers'))).'</li>';
$output.='<li>'.t('a <a href="@top-pages">top pages</a> log that displays site content in descending order by number of views.',array('@top-pages'=>url('admin/reports/pages'))).'</li>';
@@ -112,8 +112,8 @@ function system_help($path, $arg) {
case'admin/appearance/settings':
return'<p>'.t('These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used.').'</p>';
case'admin/structure/modules':
$output='<p>'.t('Modules are plugins that extend Drupal\'s core functionality. To further extend your site\'s functionality, a number of <a href="@modules">contributed modules</a> are available for download.',array('@permissions'=>url('admin/user/permissions'),'@modules'=>'http://drupal.org/project/modules')).'</p>';
$output.='<p>'.t('Module-related tasks can be located on the <a href="@by-module">administration by module page</a>. New <a href="@permissions">module-related permissions</a> may also become available as new modules are enabled.',array('@by-module'=>url('admin/by-module'),'@permissions'=>url('admin/user/permissions'))).'</p>';
$output='<p>'.t('Modules are plugins that extend Drupal\'s core functionality. To further extend your site\'s functionality, a number of <a href="@modules">contributed modules</a> are available for download.',array('@permissions'=>url('admin/settings/permissions'),'@modules'=>'http://drupal.org/project/modules')).'</p>';
$output.='<p>'.t('Module-related tasks can be located on the <a href="@by-module">administration by module page</a>. New <a href="@permissions">module-related permissions</a> may also become available as new modules are enabled.',array('@by-module'=>url('admin/by-module'),'@permissions'=>url('admin/settings/permissions'))).'</p>';
$output.='<p>'.t('Each time a module is updated, it is important that <a href="@update-php">update.php</a> is run. To help manage the update process, the <em>Update status</em> module, if enabled, provides <a href="@updates">information on new versions of modules (and themes)</a> as they are released. Regular review of the <a href="@updates">available updates page</a> is essential to maintaining a secure and current site.',array('@update-php'=>$base_url.'/update.php','@updates'=>url('admin/reports/updates'))).'</p>';
@@ -33,7 +33,7 @@ function translation_help($path, $arg) {
case'admin/help#translation':
$output='<p>'.t('The content translation module allows content to be translated into different languages. Working with the <a href="@locale">locale module</a> (which manages enabled languages and provides translation for the site interface), the content translation module is key to creating and maintaining translated site content.',array('@locale'=>url('admin/help/locale'))).'</p>';
$output.='<p>'.t('Configuring content translation and translation-enabled content types:').'</p>';
$output.='<ul><li>'.t('Assign the <em>translate content</em> permission to the appropriate user roles at the <a href="@permissions">Permissions configuration page</a>.',array('@permissions'=>url('admin/user/permissions'))).'</li>';
$output.='<ul><li>'.t('Assign the <em>translate content</em> permission to the appropriate user roles at the <a href="@permissions">Permissions configuration page</a>.',array('@permissions'=>url('admin/settings/permissions'))).'</li>';
$output.='<li>'.t('Add and enable desired languages at the <a href="@languages">Languages configuration page</a>.',array('@languages'=>url('admin/settings/language'))).'</li>';
$output.='<li>'.t('Determine which <a href="@content-types">content types</a> should support translation features. To enable translation support for a content type, edit the type and at the <em>Multilingual support</em> drop down, select <em>Enabled, with translation</em>. (<em>Multilingual support</em> is located within <em>Publishing options</em>.) Be sure to save each content type after enabling multilingual support.',array('@content-types'=>url('admin/structure/types'))).'</li></ul>';
$output.='<p>'.t('Working with translation-enabled content types:').'</p>';
@@ -18,7 +18,7 @@ function upload_help($path, $arg) {
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@upload">Upload module</a>.',array('@upload'=>'http://drupal.org/handbook/modules/upload/')).'</p>';
return$output;
case'admin/settings/upload':
return'<p>'.t('Users with the <a href="@permissions">upload files permission</a> can upload attachments. Users with the <a href="@permissions">view uploaded files permission</a> can view uploaded attachments. You can choose which post types can take attachments on the <a href="@types">content types settings</a> page.',array('@permissions'=>url('admin/user/permissions'),'@types'=>url('admin/settings/types'))).'</p>';
return'<p>'.t('Users with the <a href="@permissions">upload files permission</a> can upload attachments. Users with the <a href="@permissions">view uploaded files permission</a> can view uploaded attachments. You can choose which post types can take attachments on the <a href="@types">content types settings</a> page.',array('@permissions'=>url('admin/settings/permissions'),'@types'=>url('admin/settings/types'))).'</p>';
'#description'=>t('Users with the %select-cancel-method or %administer-users <a href="@permissions-url">permissions</a> can override this default method.',array('%select-cancel-method'=>t('Select method for cancelling account'),'%administer-users'=>t('Administer users'),'@permissions-url'=>url('admin/user/permissions'))),
'#description'=>t('Users with the %select-cancel-method or %administer-users <a href="@permissions-url">permissions</a> can override this default method.',array('%select-cancel-method'=>t('Select method for cancelling account'),'%administer-users'=>t('Administer users'),'@permissions-url'=>url('admin/settings/permissions'))),
@@ -2320,7 +2312,7 @@ function user_multiple_cancel_confirm(&$form_state) {
returnconfirm_form($form,
t('Are you sure you want to cancel these user accounts?'),
'admin/user/user',t('This action cannot be undone.'),
'admin/user',t('This action cannot be undone.'),
t('Cancel accounts'),t('Cancel'));
}
...
...
@@ -2347,7 +2339,7 @@ function user_multiple_cancel_confirm_submit($form, &$form_state) {
}
}
}
$form_state['redirect']='admin/user/user';
$form_state['redirect']='admin/user';
return;
}
...
...
@@ -2364,17 +2356,16 @@ function user_help($path, $arg) {
$output.='<p>'.t('A visitor accessing your website is assigned a unique ID, or session ID, which is stored in a cookie. The cookie does not contain personal information, but acts as a key to retrieve information from your site. Users should have cookies enabled in their web browser when using your site.').'</p>';
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@user">User module</a>.',array('@user'=>'http://drupal.org/handbook/modules/user/')).'</p>';
return$output;
case'admin/user/user/create':
case'admin/user/user/account/create':
case'admin/user/create':
return'<p>'.t("This web page allows administrators to register new users. Users' e-mail addresses and usernames must be unique.").'</p>';
case'admin/user/permissions':
return'<p>'.t('Permissions let you control what users can do and see on your site. You can define a specific set of permissions for each role. (See the <a href="@role">Roles</a> page to create a role). Two important roles to consider are Authenticated Users and Administrators. Any permissions granted to the Authenticated Users role will be given to any user who can log into your site. You can make any role the Administrator role for the site, meaning this will be granted all new permissions automatically. You can do this on the <a href="@settings">User Settings</a> page. You should be careful to ensure that only trusted users are given this access and level of control of your site.',array('@role'=>url('admin/user/roles'),'@settings'=>url('admin/settings/user'))).'</p>';
case'admin/user/roles':
case'admin/settings/permissions':
return'<p>'.t('Permissions let you control what users can do and see on your site. You can define a specific set of permissions for each role. (See the <a href="@role">Roles</a> page to create a role). Two important roles to consider are Authenticated Users and Administrators. Any permissions granted to the Authenticated Users role will be given to any user who can log into your site. You can make any role the Administrator role for the site, meaning this will be granted all new permissions automatically. You can do this on the <a href="@settings">User Settings</a> page. You should be careful to ensure that only trusted users are given this access and level of control of your site.',array('@role'=>url('admin/settings/roles'),'@settings'=>url('admin/settings/user'))).'</p>';
case'admin/settings/roles':
returnt('<p>Roles allow you to fine tune the security and administration of Drupal. A role defines a group of users that have certain privileges as defined in <a href="@permissions">user permissions</a>. Examples of roles include: anonymous user, authenticated user, moderator, administrator and so on. In this area you will define the <em>role names</em> of the various roles. To delete a role choose "edit".</p><p>By default, Drupal comes with two user roles:</p>
<ul>
<li>Anonymous user: this role is used for users that don\'t have a user account or that are not authenticated.</li>
<li>Authenticated user: this role is automatically granted to all logged in users.</li>
return'<p>'.t('Enter a simple pattern ("*" may be used as a wildcard match) to search for a username or e-mail address. For example, one may search for "br" and Drupal might return "brian", "brad", and "brenda@example.com".').'</p>';
}
...
...
@@ -2874,7 +2865,7 @@ function user_register() {
'#title'=>t('Notify user of new account')
);
// Redirect back to page which initiated the create request;