summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-11-11 06:56:44 +0000
committerDries Buytaert <dries@buytaert.net>2007-11-11 06:56:44 +0000
commit073eb45833be1c36d804c456c1258a697353fc70 (patch)
tree1125c35f32d4d18553b304ae1cdce7cad251f22c /modules
parent049c6ddd96d727e0ba14ad97cf9a3c6575377669 (diff)
downloadbrdo-073eb45833be1c36d804c456c1258a697353fc70.tar.gz
brdo-073eb45833be1c36d804c456c1258a697353fc70.tar.bz2
- Patch #191073 by Keith: another good string cleanup by Keith. (Also removed some trailing whitespace.)
Diffstat (limited to 'modules')
-rw-r--r--modules/menu/menu.admin.inc2
-rw-r--r--modules/node/content_types.inc6
-rw-r--r--modules/system/system.install2
-rw-r--r--modules/taxonomy/taxonomy.module2
-rw-r--r--modules/taxonomy/taxonomy.pages.inc8
-rw-r--r--modules/trigger/trigger.module6
6 files changed, 13 insertions, 13 deletions
diff --git a/modules/menu/menu.admin.inc b/modules/menu/menu.admin.inc
index c43de5148..c13c88e87 100644
--- a/modules/menu/menu.admin.inc
+++ b/modules/menu/menu.admin.inc
@@ -317,7 +317,7 @@ function menu_edit_menu(&$form_state, $type, $menu = array()) {
'#type' => 'textfield',
'#title' => t('Menu name'),
'#maxsize' => MENU_MAX_MENU_NAME_LENGTH_UI,
- '#description' => t('The machine-readable name of this menu. This text will be used for constructing the URL of the <em>menu overview</em> page for this menu. This name may consist of only of lowercase letters, numbers, and hyphens, and must be unique.'),
+ '#description' => t('The machine-readable name of this menu. This text will be used for constructing the URL of the <em>menu overview</em> page for this menu. This name must contain only lowercase letters, numbers, and hyphens, and must be unique.'),
'#required' => TRUE,
);
$form['#insert'] = TRUE;
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index f94992509..85b1bb1d3 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -73,7 +73,7 @@ function node_type_form(&$form_state, $type = NULL) {
'#title' => t('Name'),
'#type' => 'textfield',
'#default_value' => $type->name,
- '#description' => t('The human-readable name of this content type. This text will be displayed as part of the list on the <em>create content</em> page. It is recommended that this name begins with a capital letter and consists only of letters, numbers, and <strong>spaces</strong>. This name must be unique to this content type.'),
+ '#description' => t('The human-readable name of this content type. This text will be displayed as part of the list on the <em>create content</em> page. This name must begin with a capital letter and contain only letters, numbers, and <strong>spaces</strong>. This name must be unique.'),
'#required' => TRUE,
);
@@ -84,7 +84,7 @@ function node_type_form(&$form_state, $type = NULL) {
'#default_value' => $type->type,
'#maxlength' => 32,
'#required' => TRUE,
- '#description' => t('The machine-readable name of this content type. This text will be used for constructing the URL of the <em>create content</em> page for this content type. This name may consist of only of lowercase letters, numbers, and underscores. Hyphens are not allowed. Underscores will be converted into hyphens when constructing the URL of the <em>create content</em> page. This name must be unique to this content type.'),
+ '#description' => t('The machine-readable name of this content type. This text will be used for constructing the URL of the <em>create content</em> page for this content type. This name must contain only lowercase letters, numbers, and underscores. Underscores will be converted into hyphens when constructing the URL of the <em>create content</em> page. This name must be unique.'),
);
}
else {
@@ -232,7 +232,7 @@ function node_type_form_validate($form, &$form_state) {
form_set_error('type', t('The machine-readable name %type is already taken.', array('%type' => $type->type)));
}
if (!preg_match('!^[a-z0-9_]+$!', $type->type)) {
- form_set_error('type', t('The machine-readable name can only consist of lowercase letters, underscores, and numbers.'));
+ form_set_error('type', t('The machine-readable name must contain only lowercase letters, numbers, and underscores.'));
}
// The type cannot be just the character '0', since elsewhere we check it using empty().
if ($type->type === '0') {
diff --git a/modules/system/system.install b/modules/system/system.install
index 97f32e095..bd5a20f23 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -952,7 +952,7 @@ function system_schema() {
'not null' => FALSE)
),
'primary key' => array('filename'),
- 'indexes' =>
+ 'indexes' =>
array(
'modules' => array(array('type', 12), 'status', 'weight', 'filename'),
'bootstrap' => array(array('type', 12), 'status', 'bootstrap', 'weight', 'filename'),
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 1f6c1eed0..9d0c08ade 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -347,7 +347,7 @@ function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
$vocabulary = taxonomy_vocabulary_load($vid);
$help = ($help) ? $help : $vocabulary->help;
$blank = 0;
-
+
if (!$vocabulary->multiple) {
$blank = ($vocabulary->required) ? t('- Please choose -') : t('- None selected -');
}
diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc
index 4a4b9339a..74f1db504 100644
--- a/modules/taxonomy/taxonomy.pages.inc
+++ b/modules/taxonomy/taxonomy.pages.inc
@@ -77,7 +77,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
/**
* Render a taxonomy term page HTML output.
- *
+ *
* @param $tids
* An array of term ids.
* @param $result
@@ -85,7 +85,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
*/
function theme_taxonomy_term_page($tids, $result) {
$output = '';
-
+
// Only display the description if we have a single term, to avoid clutter and confusion.
if (count($tids) == 1) {
$term = taxonomy_get_term($tids[0]);
@@ -93,9 +93,9 @@ function theme_taxonomy_term_page($tids, $result) {
$output .= filter_xss_admin($term->description);
$output .= '</div>';
}
-
+
$output .= taxonomy_render_nodes($result);
-
+
return $output;
}
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index 44036b969..e3722e376 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -51,7 +51,7 @@ function trigger_menu() {
'page arguments' => array('node'),
'access arguments' => array('node'),
'type' => MENU_LOCAL_TASK,
- 'file' => 'trigger.admin.inc',
+ 'file' => 'trigger.admin.inc',
);
$items['admin/build/trigger/user'] = array(
'title' => 'Users',
@@ -59,7 +59,7 @@ function trigger_menu() {
'page arguments' => array('user'),
'access arguments' => array('user'),
'type' => MENU_LOCAL_TASK,
- 'file' => 'trigger.admin.inc',
+ 'file' => 'trigger.admin.inc',
);
$items['admin/build/trigger/comment'] = array(
'title' => 'Comments',
@@ -68,7 +68,7 @@ function trigger_menu() {
'access callback' => 'trigger_access_check',
'access arguments' => array('comment'),
'type' => MENU_LOCAL_TASK,
- 'file' => 'trigger.admin.inc',
+ 'file' => 'trigger.admin.inc',
);
$items['admin/build/trigger/taxonomy'] = array(
'title' => 'Categories',