summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/file.inc2
-rw-r--r--includes/form.inc4
-rw-r--r--includes/locale.inc14
-rw-r--r--includes/theme.inc2
4 files changed, 11 insertions, 11 deletions
diff --git a/includes/file.inc b/includes/file.inc
index c9aaf011b..196d6c172 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -27,7 +27,7 @@ define('FILE_EXISTS_ERROR', 2);
* @return A string containing a URL that can be used to download the file.
*/
function file_create_url($path) {
- // Strip file_directory_path from $path. We only include relative paths in urls.
+ // Strip file_directory_path from $path. We only include relative paths in urls.
if (strpos($path, file_directory_path()) !== false) {
$path = trim(substr($path, strlen(file_directory_path())), '\\/');
}
diff --git a/includes/form.inc b/includes/form.inc
index 27120901d..2f9e9e76a 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -434,12 +434,12 @@ function form_builder($form_id, $form) {
}
/**
- * Use this function to make changes to form values in the form validate
+ * Use this function to make changes to form values in the form validate
* phase, so they will be available in the submit phase in $form_values.
*
* Specifically, if $form['#parents'] is array('foo', 'bar')
* and $value is 'baz' then this function will make
- * $form_values['foo']['bar'] to be 'baz'.
+ * $form_values['foo']['bar'] to be 'baz'.
*
* @param $form
* The form item. Keys used: #parents, #value
diff --git a/includes/locale.inc b/includes/locale.inc
index 4bc3e9e6c..37cd36ff6 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -92,7 +92,7 @@ function theme_locale_admin_manage_screen($form) {
$header = array(array('data' => t('Code')), array('data' => t('English name')), array('data' => t('Enabled')), array('data' => t('Default')), array('data' => t('Translated')), array('data' => t('Operations')));
$output = theme('table', $header, $rows);
$output .= form_render($form);
-
+
return $output;
}
@@ -116,7 +116,7 @@ function _locale_admin_manage_screen_submit($form_id, $form_values) {
}
}
drupal_set_message(t('Configuration saved.'));
-
+
// Changing the locale settings impacts the interface:
cache_clear_all();
@@ -141,7 +141,7 @@ function _locale_admin_manage_add_screen() {
'#description' => t('Select your language here, or add it below, if you are unable to find it.'),
);
$form['language list']['submit'] = array('#type' => 'submit', '#value' => t('Add language'));
-
+
$output = drupal_get_form('locale_add_language_form', $form);
$form = array();
@@ -198,7 +198,7 @@ function locale_add_language_form_submit($form_id, $form_values) {
$isocodes = _locale_get_iso639_list();
_locale_add_language($form_values['langcode'], $isocodes[$form_values['langcode']][0]);
}
-
+
return 'admin/locale';
}
@@ -363,7 +363,7 @@ function _locale_string_edit($lid) {
// Approximate the number of rows in a textfield with a maximum of 10.
$rows = min(ceil(str_word_count($orig) / 12), 10);
-
+
$form[$translation->locale] = array('#type' => 'textarea',
'#title' => $languages['name'][$translation->locale],
'#default_value' => $translation->translation,
@@ -432,8 +432,8 @@ function _locale_string_delete($lid) {
db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
locale_refresh_cache();
drupal_set_message(t('The string has been removed.'));
-
- drupal_goto('admin/locale/string/search');
+
+ drupal_goto('admin/locale/string/search');
}
/**
diff --git a/includes/theme.inc b/includes/theme.inc
index 0baed0463..20d0d0f81 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -570,7 +570,7 @@ function theme_help() {
*/
function theme_node($node, $teaser = FALSE, $page = FALSE) {
if (!$node->status) {
- $output = '<div class="node-unpublished">';
+ $output = '<div class="node-unpublished">';
}
if (module_exist('taxonomy')) {