summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-08 14:06:23 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-08 14:06:23 +0000
commit5622bce2d52904922a7fd450088bcaed417af7fd (patch)
tree2999f99426795c0e105dd988241278ac2e66c340 /modules/system
parentaaaf8f572d1b7a5cb0d0e5b68a5f788adee222b2 (diff)
downloadbrdo-5622bce2d52904922a7fd450088bcaed417af7fd.tar.gz
brdo-5622bce2d52904922a7fd450088bcaed417af7fd.tar.bz2
#198579 by webernet and hswong3i: a huge set of coding style fixes, including:
- whitespaces at end of lines - indentation - control structure usage - whitespace in empty lines - phpdoc comment formatting
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/page.tpl.php2
-rw-r--r--modules/system/system.admin.inc2
-rw-r--r--modules/system/system.module10
3 files changed, 7 insertions, 7 deletions
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php
index 8a110e18a..4b1cf7228 100644
--- a/modules/system/page.tpl.php
+++ b/modules/system/page.tpl.php
@@ -32,7 +32,7 @@
* path, whether the user is logged in, and so on.
*
* Site identity:
- * - $front_page: The URL of the front page. Use this instead of $base_path,
+ * - $front_page: The URL of the front page. Use this instead of $base_path,
* when linking to the front page. This includes the language domain or prefix.
* - $logo: The path to the logo image, as defined in theme configuration.
* - $site_name: The name of the site, empty when display has been disabled
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 767880040..368056a2b 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1655,7 +1655,7 @@ function system_sql() {
$result = db_query("SHOW STATUS");
while ($entry = db_fetch_object($result)) {
- $data[$entry->Variable_name] = $entry->Value;
+ $data[$entry->variable_name] = $entry->value;
}
$output = '<h2>'. t('Command counters') .'</h2>';
diff --git a/modules/system/system.module b/modules/system/system.module
index 4849b7489..0e8570437 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -136,7 +136,7 @@ function system_elements() {
// Inputs
$type['submit'] = array('#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#process' => array('form_expand_ahah'));
$type['button'] = array('#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => FALSE, '#process' => array('form_expand_ahah'));
- $type['image_button'] = array('#input' => TRUE, '#button_type' => 'submit','#executes_submit_callback' => TRUE, '#process' => array('form_expand_ahah'), '#return_value' => TRUE, '#has_garbage_value' => TRUE, '#src' => NULL);
+ $type['image_button'] = array('#input' => TRUE, '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#process' => array('form_expand_ahah'), '#return_value' => TRUE, '#has_garbage_value' => TRUE, '#src' => NULL);
$type['textfield'] = array('#input' => TRUE, '#size' => 60, '#maxlength' => 128, '#autocomplete_path' => FALSE, '#process' => array('form_expand_ahah'));
$type['password'] = array('#input' => TRUE, '#size' => 60, '#maxlength' => 128, '#process' => array('form_expand_ahah'));
$type['password_confirm'] = array('#input' => TRUE, '#process' => array('expand_password_confirm'));
@@ -507,7 +507,7 @@ function system_user($type, $edit, &$user, $category = NULL) {
* Generate a block with a promotional link to Drupal.org.
*/
function system_block($op = 'list', $delta = 0, $edit = NULL) {
- switch($op) {
+ switch ($op) {
case 'list':
$blocks[0] = array(
'info' => t('Powered by Drupal'),
@@ -741,7 +741,7 @@ function system_theme_data() {
*/
function _system_theme_data() {
static $themes_info = array();
-
+
if (empty($theme_info)) {
// Find themes
$themes = drupal_system_listing('\.info$', 'themes');
@@ -819,7 +819,7 @@ function _system_theme_data() {
}
}
}
-
+
$themes_info = $themes;
}
@@ -1477,7 +1477,7 @@ function system_send_email_action_validate($form, $form_state) {
if (!valid_email_address($form_values['recipient']) && $form_values['recipient'] != '%author') {
// We want the literal %author placeholder to be emphasized in the error message.
form_set_error('recipient', t('Please enter a valid email address or %author.', array('%author' => '%author')));
- }
+ }
}
function system_send_email_action_submit($form, $form_state) {