diff --git a/includes/cache.inc b/includes/cache.inc
index 83cd23e47d485c4aa4a08ed302282f50e1804f58..a7ad1621478d571119de78badcdbcb845cc89eef 100644
--- a/includes/cache.inc
+++ b/includes/cache.inc
@@ -168,7 +168,7 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
         // This is the first request to clear the cache, start a timer.
         variable_set('cache_flush', REQUEST_TIME);
       }
-      else if (REQUEST_TIME > ($cache_flush + variable_get('cache_lifetime', 0))) {
+      elseif (REQUEST_TIME > ($cache_flush + variable_get('cache_lifetime', 0))) {
         // Clear the cache for everyone, cache_flush_delay seconds have
         // passed since the first request to clear the cache.
         db_delete($table)
diff --git a/includes/common.inc b/includes/common.inc
index 4c03bce7b9ee7a4e988f19ec3665983a24f91a15..7830e4015d04f7f7572933b024a83ab70e3fe34d 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1247,25 +1247,25 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
     if (strpos('AaDlM', $c) !== FALSE) {
       $date .= t(gmdate($c, $timestamp), array(), $langcode);
     }
-    else if ($c == 'F') {
+    elseif ($c == 'F') {
       // Special treatment for long month names: May is both an abbreviation
       // and a full month name in English, but other languages have
       // different abbreviations.
       $date .= trim(t('!long-month-name ' . gmdate($c, $timestamp), array('!long-month-name' => ''), $langcode));
     }
-    else if (strpos('BdgGhHiIjLmnsStTUwWYyz', $c) !== FALSE) {
+    elseif (strpos('BdgGhHiIjLmnsStTUwWYyz', $c) !== FALSE) {
       $date .= gmdate($c, $timestamp);
     }
-    else if ($c == 'r') {
+    elseif ($c == 'r') {
       $date .= format_date($timestamp - $timezone, 'custom', 'D, d M Y H:i:s O', $timezone, $langcode);
     }
-    else if ($c == 'O') {
+    elseif ($c == 'O') {
       $date .= sprintf('%s%02d%02d', ($timezone < 0 ? '-' : '+'), abs($timezone / 3600), abs($timezone % 3600) / 60);
     }
-    else if ($c == 'Z') {
+    elseif ($c == 'Z') {
       $date .= $timezone;
     }
-    else if ($c == '\\') {
+    elseif ($c == '\\') {
       $date .= $format[++$i];
     }
     else {
@@ -1789,7 +1789,7 @@ function drupal_get_css($css = NULL) {
             }
             // If a CSS file is not to be preprocessed and it's a theme CSS file, it needs to *always* appear at the *bottom*,
             // regardless of whether preprocessing is on or off.
-            else if (!$preprocess && $type == 'theme') {
+            elseif (!$preprocess && $type == 'theme') {
               $no_theme_preprocess .= '<link type="text/css" rel="stylesheet" media="' . $media . '" href="' . base_path() . $file . $query_string . '" />' . "\n";
             }
             else {
@@ -2559,7 +2559,7 @@ function page_set_cache() {
         if (zlib_get_coding_type() == 'deflate') {
           $cache = FALSE;
         }
-        else if (zlib_get_coding_type() == FALSE) {
+        elseif (zlib_get_coding_type() == FALSE) {
           $data = gzencode($data, 9, FORCE_GZIP);
         }
         // The remaining case is 'gzip' which means the data is
diff --git a/includes/file.inc b/includes/file.inc
index ac8549cfd1c45433bc4d9194dce52502a6230156..ecf2edb93c2fa56602bfd31fc9ca29712d77a824 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -128,11 +128,11 @@ function file_create_path($destination = NULL) {
   }
   // Check if the destination is instead inside the Drupal temporary files
   // directory.
-  else if (file_check_location($destination, file_directory_temp())) {
+  elseif (file_check_location($destination, file_directory_temp())) {
     return $destination;
   }
   // Not found, try again with prefixed directory path.
-  else if (file_check_location($file_path . '/' . $destination, $file_path)) {
+  elseif (file_check_location($file_path . '/' . $destination, $file_path)) {
     return $file_path . '/' . $destination;
   }
   // File not found.
diff --git a/includes/form.inc b/includes/form.inc
index 2293389315fd0dad452b0f4a99facc42e7d0dbcc..037bb9ee6381bb9de8384344ff1462ade75f3194 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -488,7 +488,7 @@ function drupal_prepare_form($form_id, &$form, &$form_state) {
       $form['form_token'] = array('#type' => 'token', '#default_value' => drupal_get_token($form['#token']));
     }
   }
-  else if (isset($user->uid) && $user->uid && !$form['#programmed']) {
+  elseif (isset($user->uid) && $user->uid && !$form['#programmed']) {
     $form['#token'] = $form_id;
     $form['form_token'] = array(
       '#id' => form_clean_id('edit-' . $form_id . '-form-token'),
@@ -1375,7 +1375,7 @@ function form_options_flatten($array, $reset = TRUE) {
     if (is_object($value)) {
       form_options_flatten($value->option, FALSE);
     }
-    else if (is_array($value)) {
+    elseif (is_array($value)) {
       form_options_flatten($value, FALSE);
     }
     else {
@@ -1479,12 +1479,12 @@ function form_get_options($element, $key) {
     if (is_array($choice)) {
       return FALSE;
     }
-    else if (is_object($choice)) {
+    elseif (is_object($choice)) {
       if (isset($choice->option[$key])) {
         $keys[] = $index;
       }
     }
-    else if ($index == $key) {
+    elseif ($index == $key) {
       $keys[] = $index;
     }
   }
diff --git a/includes/locale.inc b/includes/locale.inc
index 3d87909d4ec1eea794f65f8ce94e7448047fdcc8..37b634c02620b6773db6c6fc53965d32e9842951 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1320,7 +1320,7 @@ function _locale_import_one_string_db(&$report, $langcode, $source, $translation
         db_query("INSERT INTO {locales_target} (lid, language, translation, plid, plural) VALUES (%d, '%s', '%s', %d, %d)", $lid, $langcode, $translation, $plid, $plural);
         $report[0]++;
       }
-      else if ($mode == LOCALE_IMPORT_OVERWRITE) {
+      elseif ($mode == LOCALE_IMPORT_OVERWRITE) {
         // Translation exists, only overwrite if instructed.
         db_query("UPDATE {locales_target} SET translation = '%s', plid = %d, plural = %d WHERE language = '%s' AND lid = %d", $translation, $plid, $plural, $langcode, $lid);
         $report[1]++;
diff --git a/includes/module.inc b/includes/module.inc
index 20ea806ed9378aa9bf68d7cbefeb101e5a4bc2ae..9df64a66f29552f413f273e3e2350316afb2d4cd 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -476,7 +476,7 @@ function module_invoke_all() {
       if (isset($result) && is_array($result)) {
         $return = array_merge_recursive($return, $result);
       }
-      else if (isset($result)) {
+      elseif (isset($result)) {
         $return[] = $result;
       }
     }
diff --git a/includes/pager.inc b/includes/pager.inc
index 68e453ac78610e09bb4220de18e9b4c4030fcd18..4b219a8ca2f0a8942f8c767ea902ff865364de99 100644
--- a/includes/pager.inc
+++ b/includes/pager.inc
@@ -401,7 +401,7 @@ function theme_pager_link($text, $page_new, $element, $parameters = array(), $at
     if (isset($titles[$text])) {
       $attributes['title'] = $titles[$text];
     }
-    else if (is_numeric($text)) {
+    elseif (is_numeric($text)) {
       $attributes['title'] = t('Go to page @number', array('@number' => $text));
     }
   }
diff --git a/includes/theme.inc b/includes/theme.inc
index 3b76c070c73462a3fd0bd26330a52fb9df1faef8..61a0bbf65d008210cf56368071bf36db9a11fb93 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1128,7 +1128,7 @@ function theme_links($links, $attributes = array('class' => 'links')) {
         // Pass in $link as $options, they share the same keys.
         $output .= l($link['title'], $link['href'], $link);
       }
-      else if (!empty($link['title'])) {
+      elseif (!empty($link['title'])) {
         // Some links are actually not links, but we wrap these in <span> for adding title and class attributes
         if (empty($link['html'])) {
           $link['title'] = check_plain($link['title']);
@@ -1457,7 +1457,7 @@ function theme_mark($type = MARK_NEW) {
     if ($type == MARK_NEW) {
       return ' <span class="marker">' . t('new') . '</span>';
     }
-    else if ($type == MARK_UPDATED) {
+    elseif ($type == MARK_UPDATED) {
       return ' <span class="marker">' . t('updated') . '</span>';
     }
   }
@@ -1639,7 +1639,7 @@ function theme_username($object) {
       $output = check_plain($name);
     }
   }
-  else if ($object->name) {
+  elseif ($object->name) {
     // Sometimes modules display content composed by people who are
     // not registered members of the site (e.g. mailing list or news
     // aggregator modules). This clause enables modules to display
diff --git a/includes/unicode.inc b/includes/unicode.inc
index b01e3bcfd8400f5ece10cf2f7bc95d84ed0febcb..96611d14dea1aad5c541160a63e81f5f7b1d8f6f 100644
--- a/includes/unicode.inc
+++ b/includes/unicode.inc
@@ -174,10 +174,10 @@ function drupal_convert_to_utf8($data, $encoding) {
   if (function_exists('iconv')) {
     $out = @iconv($encoding, 'utf-8', $data);
   }
-  else if (function_exists('mb_convert_encoding')) {
+  elseif (function_exists('mb_convert_encoding')) {
     $out = @mb_convert_encoding($data, 'utf-8', $encoding);
   }
-  else if (function_exists('recode_string')) {
+  elseif (function_exists('recode_string')) {
     $out = @recode_string($encoding . '..utf-8', $data);
   }
   else {
@@ -370,16 +370,16 @@ function _decode_entities($prefix, $codepoint, $original, &$table, &$exclude) {
   if ($codepoint < 0x80) {
     $str = chr($codepoint);
   }
-  else if ($codepoint < 0x800) {
+  elseif ($codepoint < 0x800) {
     $str = chr(0xC0 | ($codepoint >> 6))
          . chr(0x80 | ($codepoint & 0x3F));
   }
-  else if ($codepoint < 0x10000) {
+  elseif ($codepoint < 0x10000) {
     $str = chr(0xE0 | ( $codepoint >> 12))
          . chr(0x80 | (($codepoint >> 6) & 0x3F))
          . chr(0x80 | ( $codepoint       & 0x3F));
   }
-  else if ($codepoint < 0x200000) {
+  elseif ($codepoint < 0x200000) {
     $str = chr(0xF0 | ( $codepoint >> 18))
          . chr(0x80 | (($codepoint >> 12) & 0x3F))
          . chr(0x80 | (($codepoint >> 6)  & 0x3F))
@@ -488,7 +488,7 @@ function drupal_substr($text, $start, $length = NULL) {
         }
       }
     }
-    else if ($start < 0) {
+    elseif ($start < 0) {
       // Count all the continuation bytes from the end until we have found
       // abs($start) characters
       $start = abs($start);
@@ -507,7 +507,7 @@ function drupal_substr($text, $start, $length = NULL) {
     if ($length === NULL) {
       $bytes = $strlen - 1;
     }
-    else if ($length > 0) {
+    elseif ($length > 0) {
       // Count all the continuation bytes from the starting index until we have
       // found $length + 1 characters. Then backtrack one byte.
       $bytes = $istart; $chars = 0;
@@ -520,7 +520,7 @@ function drupal_substr($text, $start, $length = NULL) {
       }
       $bytes--;
     }
-    else if ($length < 0) {
+    elseif ($length < 0) {
       // Count all the continuation bytes from the end until we have found
       // abs($length) characters
       $length = abs($length);
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 70d1538cb426e9520c1cbafea3edefaae522ce7c..1d81233e2a1cf7a77150ea6911d6648bf71db762 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -801,7 +801,7 @@ function aggregator_parse_feed(&$data, $feed) {
     if (!empty($guid)) {
       $entry = db_fetch_object(db_query("SELECT iid, timestamp FROM {aggregator_item} WHERE fid = %d AND guid = '%s'", $feed['fid'], $guid));
     }
-    else if ($link && $link != $feed['link'] && $link != $feed['url']) {
+    elseif ($link && $link != $feed['link'] && $link != $feed['url']) {
       $entry = db_fetch_object(db_query("SELECT iid, timestamp FROM {aggregator_item} WHERE fid = %d AND link = '%s'", $feed['fid'], $link));
     }
     else {
diff --git a/modules/blog/blog.pages.inc b/modules/blog/blog.pages.inc
index 2deb15cef9f5c637c14937c93f1b9acd8432db87..d44bbf5fa42bfce5991e4635c2f3f093826568d2 100644
--- a/modules/blog/blog.pages.inc
+++ b/modules/blog/blog.pages.inc
@@ -19,7 +19,7 @@ function blog_page_user($account) {
   if (($account->uid == $user->uid) && user_access('create blog content')) {
     $items[] = l(t('Post new blog entry.'), "node/add/blog");
   }
-  else if ($account->uid == $user->uid) {
+  elseif ($account->uid == $user->uid) {
     $items[] = t('You are not allowed to post a new blog entry.');
   }
 
diff --git a/modules/comment/comment.pages.inc b/modules/comment/comment.pages.inc
index 789ffde7f27fc22b538260dc63e8934e11037ead..fe97f041b97c450bc428e93a9b5268883377f331 100644
--- a/modules/comment/comment.pages.inc
+++ b/modules/comment/comment.pages.inc
@@ -88,7 +88,7 @@ function comment_reply($node, $pid = NULL) {
         }
       }
       // This is the case where the comment is in response to a node. Display the node.
-      else if (user_access('access content')) {
+      elseif (user_access('access content')) {
         $output .= node_view($node);
       }
 
@@ -97,7 +97,7 @@ function comment_reply($node, $pid = NULL) {
         drupal_set_message(t("This discussion is closed: you can't post new comments."), 'error');
         drupal_goto("node/$node->nid");
       }
-      else if (user_access('post comments')) {
+      elseif (user_access('post comments')) {
         $output .= comment_form_box(array('pid' => $pid, 'nid' => $node->nid), t('Reply'));
       }
       else {
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc
index e9a9f00d3d566d46d29334659a4647d32a8863f6..041c05153ec0e848bc12e6932bb700ef71ef0f86 100644
--- a/modules/contact/contact.pages.inc
+++ b/modules/contact/contact.pages.inc
@@ -160,7 +160,7 @@ function contact_user_page($account) {
   if (!valid_email_address($user->mail)) {
     $output = t('You need to provide a valid e-mail address to contact other users. Please update your <a href="@url">user information</a> and try again.', array('@url' => url("user/$user->uid/edit", array('query' => 'destination=' . drupal_get_destination()))));
   }
-  else if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3)) && !user_access('administer site-wide contact form')) {
+  elseif (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3)) && !user_access('administer site-wide contact form')) {
     $output = t("You cannot send more than %number messages per hour. Please try again later.", array('%number' => variable_get('contact_hourly_threshold', 3)));
   }
   else {
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 64c5fc321a3d1cf79f154ed9ec55f3b032de90d8..e361a098509487917d7ce40c63e8c84baca222e9 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -880,12 +880,12 @@ function _filter_autop($text) {
         }
       }
       // Only allow a matching tag to close it.
-      else if (!$open && $ignoretag == $tag) {
+      elseif (!$open && $ignoretag == $tag) {
         $ignore = FALSE;
         $ignoretag = '';
       }
     }
-    else if (!$ignore) {
+    elseif (!$ignore) {
       $chunk = preg_replace('|\n*$|', '', $chunk) . "\n\n"; // just to make things a little easier, pad the end
       $chunk = preg_replace('|<br />\s*<br />|', "\n\n", $chunk);
       $chunk = preg_replace('!(<' . $block . '[^>]*>)!', "\n$1", $chunk); // Space things out a little
@@ -1001,7 +1001,7 @@ function _filter_xss_split($m, $store = FALSE) {
     // We matched a lone ">" character
     return '&gt;';
   }
-  else if (strlen($string) == 1) {
+  elseif (strlen($string) == 1) {
     // We matched a lone "<" character
     return '&lt;';
   }
diff --git a/modules/filter/filter.test b/modules/filter/filter.test
index 7ee2977122d7e15321c420ad7addf72d0826c53d..cd6dc1a7e6a33105072f4e0249280e6d31a87f86 100644
--- a/modules/filter/filter.test
+++ b/modules/filter/filter.test
@@ -162,7 +162,7 @@ class FilterAdminTestCase extends DrupalWebTestCase {
       if ($format->name == 'Filtered HTML') {
         $filtered = $format->format;
       }
-      else if ($format->name == 'Full HTML') {
+      elseif ($format->name == 'Full HTML') {
         $full = $format->format;
       }
     }
diff --git a/modules/forum/forum.admin.inc b/modules/forum/forum.admin.inc
index d39ad3278681c114ae7e3c2cf41a7b3d8f5a2c43..e8c8ad050740717e3ddffe6bb25078270e54da10 100644
--- a/modules/forum/forum.admin.inc
+++ b/modules/forum/forum.admin.inc
@@ -285,7 +285,7 @@ function _forum_parent_select($tid, $title, $child_type) {
   if ($child_type == 'container') {
     $description = t('Containers are usually placed at the top (root) level, but may also be placed inside another container or forum.');
   }
-  else if ($child_type == 'forum') {
+  elseif ($child_type == 'forum') {
     $description = t('Forums may be placed at the top (root) level, or inside another container or forum.');
   }
 
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index bc4b370706edb1c74cef73a33dac273e11a68a98..9a164566c761e30e2432fb3bf15bbec7523f5459 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -562,7 +562,7 @@ function locale_update_js_files() {
   }
   // If no refresh was attempted, but we have new source files, we need
   // to store them too. This occurs if current page is in English.
-  else if ($new_files) {
+  elseif ($new_files) {
     variable_set('javascript_parsed', $parsed);
   }
 
diff --git a/modules/menu/menu.module b/modules/menu/menu.module
index 55dad4e7cea6d312fe3c199453d96bc152919a3d..cc2fcb69c2efb325c2ff15aaa12b002da019b23b 100644
--- a/modules/menu/menu.module
+++ b/modules/menu/menu.module
@@ -272,7 +272,7 @@ function menu_block($op = 'list', $delta = '') {
     }
     return $blocks;
   }
-  else if ($op == 'view') {
+  elseif ($op == 'view') {
     $data['subject'] = check_plain($menus[$delta]);
     $data['content'] = menu_tree($delta);
     return $data;
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index 9f28f5f6ebd121ce2f64f67ec46f5c0ca6e5d9e5..0573ffc57eac5d4d680a0fda3f99ebecf9485f6e 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -224,7 +224,7 @@ function node_filter_form() {
       $value = module_invoke('taxonomy', 'get_term', $value);
       $value = $value->name;
     }
-    else if ($type == 'language') {
+    elseif ($type == 'language') {
       $value = empty($value) ? t('Language neutral') : module_invoke('locale', 'language_name', $value);
     }
     else {
diff --git a/modules/node/node.module b/modules/node/node.module
index 48e75a3be13fa38844fb4c4beddd3785c6df4752..3c9143335c645ba77db028adc8e47f4ff50d69b0 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -718,7 +718,7 @@ function node_invoke_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
     if (isset($result) && is_array($result)) {
       $return = array_merge($return, $result);
     }
-    else if (isset($result)) {
+    elseif (isset($result)) {
       $return[] = $result;
     }
   }
@@ -1716,7 +1716,7 @@ function node_block($op = 'list', $delta = '') {
     $blocks['syndicate']['cache'] = BLOCK_NO_CACHE;
     return $blocks;
   }
-  else if ($op == 'view') {
+  elseif ($op == 'view') {
     $block['subject'] = t('Syndicate');
     $block['content'] = theme('feed_icon', url('rss.xml'), t('Syndicate'));
 
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index 452f3f8537b9b116aef0007041d222afb522d649..fd326ff16b6e2bec1e3ada648a4152b288c0ea08 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -356,7 +356,7 @@ function node_preview($node) {
         $node->uid = 0; // anonymous user
       }
     }
-    else if ($node->uid) {
+    elseif ($node->uid) {
       $user = user_load(array('uid' => $node->uid));
       $node->name = $user->name;
       $node->picture = $user->picture;
diff --git a/modules/openid/openid.module b/modules/openid/openid.module
index b4057c463716ed6b4ce9d4eba68b2bcb7988423d..3af31b0d6fe644c7051967a7b59295d4f49e797b 100644
--- a/modules/openid/openid.module
+++ b/modules/openid/openid.module
@@ -182,7 +182,7 @@ function openid_begin($claimed_id, $return_to = '', $form_values = array()) {
   if (!empty($services[0]['localid'])) {
     $identity = $services[0]['localid'];
   }
-  else if (!empty($services[0]['delegate'])) {
+  elseif (!empty($services[0]['delegate'])) {
     $identity = $services[0]['delegate'];
   }
   else {
diff --git a/modules/path/path.module b/modules/path/path.module
index f4f2a006d8e2538e25ddec0d70c1b5aeedd88284..b78754b8e203613faf16615a0da8b9ae8e539b21 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -93,7 +93,7 @@ function path_set_alias($path = NULL, $alias = NULL, $pid = NULL, $language = ''
       db_query("UPDATE {url_alias} SET src = '%s', dst = '%s', language = '%s' WHERE pid = %d", $path, $alias, $language, $pid);
     }
   }
-  else if ($path && $alias) {
+  elseif ($path && $alias) {
     // Check for existing aliases.
     if ($alias == drupal_get_path_alias($path, $language)) {
       // There is already such an alias, neutral or in this language.
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 21d48cba21dacc828a873a5d68d8bfd314289342..f1b725424f5c274eec522429b8efaf7d69bd01fb 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -146,7 +146,7 @@ function poll_block($op = 'list', $delta = '') {
       $blocks['recent']['info'] = t('Most recent poll');
       return $blocks;
     }
-    else if ($op == 'view') {
+    elseif ($op == 'view') {
       // Retrieve the latest poll.
       $sql = db_rewrite_sql("SELECT MAX(n.created) FROM {node} n INNER JOIN {poll} p ON p.nid = n.nid WHERE n.status = 1 AND p.active = 1");
       $timestamp = db_result(db_query($sql));
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc
index 5219dffed73fb6d605ab278d9dac4b8900687922..01f3bda32e66f0c579db8329b9d4ebe383b3474d 100644
--- a/modules/profile/profile.admin.inc
+++ b/modules/profile/profile.admin.inc
@@ -254,7 +254,7 @@ function profile_field_form(&$form_state, $arg = NULL) {
       '#description' => t('To enable browsing this field by value, enter a title for the resulting page. The word <code>%value</code> will be substituted with the corresponding value. An example page title is "People whose favorite color is %value" . This is only applicable for a public field.'),
     );
   }
-  else if ($type == 'checkbox') {
+  elseif ($type == 'checkbox') {
     $form['fields']['page'] = array('#type' => 'textfield',
       '#title' => t('Page title'),
       '#default_value' => $edit['page'],
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index abb70d9c10b7c8de339a424f1886a67c8a5680cd..9352f4b3b281ae94dd5988df21baaa10b54b241a 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -135,7 +135,7 @@ function profile_block($op = 'list', $delta = '', $edit = array()) {
     $blocks['author-information']['cache'] = BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE;
     return $blocks;
   }
-  else if ($op == 'configure') {
+  elseif ($op == 'configure') {
     // Compile a list of fields to show
     $fields = array();
     $result = db_query('SELECT name, title, weight, visibility FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight', PROFILE_PUBLIC, PROFILE_PUBLIC_LISTINGS);
@@ -152,10 +152,10 @@ function profile_block($op = 'list', $delta = '', $edit = array()) {
     );
     return $form;
   }
-  else if ($op == 'save') {
+  elseif ($op == 'save') {
     variable_set('profile_block_author_fields', $edit['profile_block_author_fields']);
   }
-  else if ($op == 'view') {
+  elseif ($op == 'view') {
     if (user_access('access user profiles')) {
       $output = '';
       if ((arg(0) == 'node') && is_numeric(arg(1)) && (arg(2) == NULL)) {
@@ -471,7 +471,7 @@ function profile_validate_profile($edit, $category) {
         }
       }
     }
-    else if ($field->required && !user_access('administer users')) {
+    elseif ($field->required && !user_access('administer users')) {
       form_set_error($field->name, t('The field %field is required.', array('%field' => $field->title)));
     }
   }
diff --git a/modules/profile/profile.pages.inc b/modules/profile/profile.pages.inc
index 52946376bb2d946c0ccb0ca12f738a3e62de05cc..4c1e3678c1d41d429e2b5a16323d44c0e41822aa 100644
--- a/modules/profile/profile.pages.inc
+++ b/modules/profile/profile.pages.inc
@@ -76,7 +76,7 @@ function profile_browse() {
     drupal_set_title($title, PASS_THROUGH);
     return $output;
   }
-  else if ($name && !$field->fid) {
+  elseif ($name && !$field->fid) {
     drupal_not_found();
   }
   else {
diff --git a/modules/search/search.module b/modules/search/search.module
index e5ad72185b9ce2291ef2c77724cdb4d791357323..8be52624943286ea7e50861615d8f0da344e15fd 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -167,7 +167,7 @@ function search_block($op = 'list', $delta = '') {
     $blocks['form']['cache'] = BLOCK_NO_CACHE;
     return $blocks;
   }
-  else if ($op == 'view' && user_access('search content')) {
+  elseif ($op == 'view' && user_access('search content')) {
     $block['content'] = drupal_get_form('search_block_form');
     $block['subject'] = t('Search');
     return $block;
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 2198dde227214b10a3e9ec45b10218dcad40d71a..35042ad2c5fa3ac8a37616f884108f6f4d4f5fcf 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1486,7 +1486,7 @@ function assertFieldByXPath($xpath, $value, $message, $group = 'Other') {
             // Input element with correct value.
             $found = TRUE;
           }
-          else if (isset($field->option)) {
+          elseif (isset($field->option)) {
             // Select element found.
             if ($this->getSelectedItem($field) == $value) {
               $found = TRUE;
@@ -1499,7 +1499,7 @@ function assertFieldByXPath($xpath, $value, $message, $group = 'Other') {
               }
             }
           }
-          else if (isset($field[0]) && $field[0] == $value) {
+          elseif (isset($field[0]) && $field[0] == $value) {
             // Text area with correct text.
             $found = TRUE;
           }
@@ -1522,7 +1522,7 @@ function getSelectedItem(SimpleXMLElement $element) {
       if (isset($item['selected'])) {
         return $item['value'];
       }
-      else if ($item->getName() == 'optgroup') {
+      elseif ($item->getName() == 'optgroup') {
         if ($value = $this->getSelectedItem($item)) {
           return $value;
         }
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index a0394ce74b02f79f6b7acb8967b8094668c9a8b5..183a97588b5c46de98afec3f58038cd044e95a03 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1147,10 +1147,10 @@ function system_ip_blocking_form_validate($form, &$form_state) {
   if (db_result(db_query("SELECT * FROM {blocked_ips} WHERE ip = '%s'", $ip))) {
     form_set_error('ip', t('This IP address is already blocked.'));
   }
-  else if ($ip == ip_address()) {
+  elseif ($ip == ip_address()) {
     form_set_error('ip', t('You may not block your own IP address.'));
   }
-  else if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE) == FALSE) {
+  elseif (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE) == FALSE) {
     form_set_error('ip', t('Please enter a valid IP address.'));
   }
 }
diff --git a/modules/system/system.install b/modules/system/system.install
index 3a5904dfd939b6844c379c77b0167263f0013585..28834f8a3a4b85f76163222790fbcb290c8516b7 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -146,7 +146,7 @@ function system_requirements($phase) {
     if (REQUEST_TIME - $cron_last > $threshold_error) {
       $severity = REQUIREMENT_ERROR;
     }
-    else if ($never_run || (REQUEST_TIME - $cron_last > $threshold_warning)) {
+    elseif ($never_run || (REQUEST_TIME - $cron_last > $threshold_warning)) {
       $severity = REQUIREMENT_WARNING;
     }
 
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index b36325f5c9c03921d70003b0d19fd67a1885080b..99859ddd6a825e82d936c04c3359ebbaa648cea4 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -227,7 +227,7 @@ function taxonomy_save_vocabulary(&$edit) {
     module_invoke_all('taxonomy', 'update', 'vocabulary', $edit);
     $status = SAVED_UPDATED;
   }
-  else if (!empty($edit['vid'])) {
+  elseif (!empty($edit['vid'])) {
     $status = taxonomy_del_vocabulary($edit['vid']);
   }
   else {
@@ -328,7 +328,7 @@ function taxonomy_save_term(&$form_values) {
     $hook = 'update';
     $status = SAVED_UPDATED;
   }
-  else if (!empty($form_values['tid'])) {
+  elseif (!empty($form_values['tid'])) {
     return taxonomy_del_term($form_values['tid']);
   }
   else {
@@ -713,10 +713,10 @@ function taxonomy_node_save($node, $terms) {
           }
         }
       }
-      else if (is_object($term)) {
+      elseif (is_object($term)) {
         db_query('INSERT INTO {term_node} (nid, vid, tid) VALUES (%d, %d, %d)', $node->nid, $node->vid, $term->tid);
       }
-      else if ($term) {
+      elseif ($term) {
         db_query('INSERT INTO {term_node} (nid, vid, tid) VALUES (%d, %d, %d)', $node->nid, $node->vid, $term);
       }
     }
@@ -1285,7 +1285,7 @@ function taxonomy_terms_parse_string($str_tids) {
     // The '+' character in a query string may be parsed as ' '.
     $terms['tids'] = preg_split('/[+ ]/', $str_tids);
   }
-  else if (preg_match('/^([0-9]+,)*[0-9]+$/', $str_tids)) {
+  elseif (preg_match('/^([0-9]+,)*[0-9]+$/', $str_tids)) {
     $terms['operator'] = 'and';
     $terms['tids'] = explode(',', $str_tids);
   }
diff --git a/modules/user/user.admin.inc b/modules/user/user.admin.inc
index 84a1c79c26a1e93c05a96afbbe6a18ea56c85f76..d2129da702692d495e9563ea98cd23d061d5e5fa 100644
--- a/modules/user/user.admin.inc
+++ b/modules/user/user.admin.inc
@@ -666,7 +666,7 @@ function user_admin_role_validate($form, &$form_state) {
         form_set_error('name', t('The role name %name already exists. Please choose another role name.', array('%name' => $form_state['values']['name'])));
       }
     }
-    else if ($form_state['values']['op'] == t('Add role')) {
+    elseif ($form_state['values']['op'] == t('Add role')) {
       if (db_result(db_query("SELECT COUNT(*) FROM {role} WHERE name = '%s'", $form_state['values']['name']))) {
         form_set_error('name', t('The role name %name already exists. Please choose another role name.', array('%name' => $form_state['values']['name'])));
       }
@@ -682,7 +682,7 @@ function user_admin_role_submit($form, &$form_state) {
     db_query("UPDATE {role} SET name = '%s' WHERE rid = %d", $form_state['values']['name'], $form_state['values']['rid']);
     drupal_set_message(t('The role has been renamed.'));
   }
-  else if ($form_state['values']['op'] == t('Delete role')) {
+  elseif ($form_state['values']['op'] == t('Delete role')) {
     db_query('DELETE FROM {role} WHERE rid = %d', $form_state['values']['rid']);
     db_query('DELETE FROM {role_permission} WHERE rid = %d', $form_state['values']['rid']);
     // Update the users who have this role set:
@@ -690,7 +690,7 @@ function user_admin_role_submit($form, &$form_state) {
 
     drupal_set_message(t('The role has been deleted.'));
   }
-  else if ($form_state['values']['op'] == t('Add role')) {
+  elseif ($form_state['values']['op'] == t('Add role')) {
     db_query("INSERT INTO {role} (name) VALUES ('%s')", $form_state['values']['name']);
     drupal_set_message(t('The role has been added.'));
   }
diff --git a/modules/user/user.module b/modules/user/user.module
index ee189ff58b3d3ea62809fd3306931ba2366b77fc..8b666cf1b0ce11a64a0b44afdf5fb343d5c15184 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -162,7 +162,7 @@ function user_load($array = array()) {
       $query[] = "$key = %d";
       $params[] = $value;
     }
-    else if ($key == 'pass') {
+    elseif ($key == 'pass') {
       $query[] = "pass = '%s'";
       $params[] = $value;
     }
@@ -757,7 +757,7 @@ function user_block($op = 'list', $delta = '', $edit = array()) {
     $blocks['online']['cache'] = BLOCK_NO_CACHE;
     return $blocks;
   }
-  else if ($op == 'configure' && $delta == 'new') {
+  elseif ($op == 'configure' && $delta == 'new') {
     $form['user_block_whois_new_count'] = array(
       '#type' => 'select',
       '#title' => t('Number of users to display'),
@@ -766,21 +766,21 @@ function user_block($op = 'list', $delta = '', $edit = array()) {
     );
     return $form;
   }
-  else if ($op == 'configure' && $delta == 'online') {
+  elseif ($op == 'configure' && $delta == 'online') {
     $period = drupal_map_assoc(array(30, 60, 120, 180, 300, 600, 900, 1800, 2700, 3600, 5400, 7200, 10800, 21600, 43200, 86400), 'format_interval');
     $form['user_block_seconds_online'] = array('#type' => 'select', '#title' => t('User activity'), '#default_value' => variable_get('user_block_seconds_online', 900), '#options' => $period, '#description' => t('A user is considered online for this long after they have last viewed a page.'));
     $form['user_block_max_list_count'] = array('#type' => 'select', '#title' => t('User list length'), '#default_value' => variable_get('user_block_max_list_count', 10), '#options' => drupal_map_assoc(array(0, 5, 10, 15, 20, 25, 30, 40, 50, 75, 100)), '#description' => t('Maximum number of currently online users to display.'));
 
     return $form;
   }
-  else if ($op == 'save' && $delta == 'new') {
+  elseif ($op == 'save' && $delta == 'new') {
     variable_set('user_block_whois_new_count', $edit['user_block_whois_new_count']);
   }
-  else if ($op == 'save' && $delta == 'online') {
+  elseif ($op == 'save' && $delta == 'online') {
     variable_set('user_block_seconds_online', $edit['user_block_seconds_online']);
     variable_set('user_block_max_list_count', $edit['user_block_max_list_count']);
   }
-  else if ($op == 'view') {
+  elseif ($op == 'view') {
     $block = array();
 
     switch ($delta) {
@@ -871,7 +871,7 @@ function template_preprocess_user_picture(&$variables) {
     if (!empty($account->picture) && file_exists($account->picture)) {
       $picture = file_create_url($account->picture);
     }
-    else if (variable_get('user_picture_default', '')) {
+    elseif (variable_get('user_picture_default', '')) {
       $picture = variable_get('user_picture_default', '');
     }
 
@@ -1551,7 +1551,7 @@ function _user_edit_validate($uid, &$edit) {
     if ($error = user_validate_name($edit['name'])) {
       form_set_error('name', $error);
     }
-    else if (db_result(db_query("SELECT COUNT(*) FROM {users} WHERE uid != %d AND LOWER(name) = LOWER('%s')", $uid, $edit['name'])) > 0) {
+    elseif (db_result(db_query("SELECT COUNT(*) FROM {users} WHERE uid != %d AND LOWER(name) = LOWER('%s')", $uid, $edit['name'])) > 0) {
       form_set_error('name', t('The name %name is already taken.', array('%name' => $edit['name'])));
     }
   }
@@ -1560,7 +1560,7 @@ function _user_edit_validate($uid, &$edit) {
   if ($error = user_validate_mail($edit['mail'])) {
     form_set_error('mail', $error);
   }
-  else if (db_result(db_query("SELECT COUNT(*) FROM {users} WHERE uid != %d AND LOWER(mail) = LOWER('%s')", $uid, $edit['mail'])) > 0) {
+  elseif (db_result(db_query("SELECT COUNT(*) FROM {users} WHERE uid != %d AND LOWER(mail) = LOWER('%s')", $uid, $edit['mail'])) > 0) {
     form_set_error('mail', t('The e-mail address %email is already registered. <a href="@password">Have you forgotten your password?</a>', array('%email' => $edit['mail'], '@password' => url('user/password'))));
   }
 }
@@ -2317,7 +2317,7 @@ function user_register_submit($form, &$form_state) {
     if ($admin && !$notify) {
       drupal_set_message(t('Created a new user account for <a href="@url">%name</a>. No e-mail has been sent.', array('@url' => url("user/$account->uid"), '%name' => $account->name)));
     }
-    else if (!variable_get('user_email_verification', TRUE) && $account->status && !$admin) {
+    elseif (!variable_get('user_email_verification', TRUE) && $account->status && !$admin) {
       // No e-mail verification is required, create new user account, and login
       // user immediately.
       _user_mail_notify('register_no_approval_required', $account);
@@ -2327,7 +2327,7 @@ function user_register_submit($form, &$form_state) {
       $form_state['redirect'] = '';
       return;
     }
-    else if ($account->status || $notify) {
+    elseif ($account->status || $notify) {
       // Create new user account, no administrator approval required.
       $op = $notify ? 'register_admin_created' : 'register_no_approval_required';
       _user_mail_notify($op, $account);
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 24eb3d6c507edb1d6a7acf5584a4f49e47819440..ada98b6fbc58e40660d71e1891a04bb39f1e1055 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -92,7 +92,7 @@ function user_pass_reset(&$form_state, $uid, $timestamp, $hashed_pass, $action =
         drupal_set_message(t('You have tried to use a one-time login link that has expired. Please request a new one using the form below.'));
         drupal_goto('user/password');
       }
-      else if ($account->uid && $timestamp > $account->login && $timestamp < $current && $hashed_pass == user_pass_rehash($account->pass, $timestamp, $account->login)) {
+      elseif ($account->uid && $timestamp > $account->login && $timestamp < $current && $hashed_pass == user_pass_rehash($account->pass, $timestamp, $account->login)) {
         // First stage is a confirmation form, then login
         if ($action == 'login') {
           watchdog('user', 'User %name used one-time login link at time %timestamp.', array('%name' => $account->name, '%timestamp' => $timestamp));
diff --git a/scripts/drupal.sh b/scripts/drupal.sh
index e94d9e9ca6b29a653439329f77758a3d0cb621a1..a3f258459adf99ea599a6147f2686100ceb317bc 100755
--- a/scripts/drupal.sh
+++ b/scripts/drupal.sh
@@ -118,7 +118,7 @@
           $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = $path['path'];
           $cmd = substr($path['path'], 1);
         }
-        else if (isset($path['path'])) {
+        elseif (isset($path['path'])) {
           if (!isset($_GET['q'])) {
             $_REQUEST['q'] = $_GET['q'] = $path['path'];
           }
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 785ce3ce4ba2ec7293ac5a5bf75d6926613a0d2b..3266db3ad185353c4fcb0932ac8cb5f7b0823abb 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -212,7 +212,7 @@ function simpletest_script_parse_args() {
     simpletest_script_print_error("--concurrency must be a strictly positive integer.");
     exit;
   }
-  else if ($args['concurrency'] > 1 && !function_exists('pcntl_fork')) {
+  elseif ($args['concurrency'] > 1 && !function_exists('pcntl_fork')) {
     simpletest_script_print_error("Parallel test execution requires the Process Control extension to be compiled in PHP. Please see http://php.net/manual/en/intro.pcntl.php for more information.");
     exit;
   }
@@ -386,7 +386,7 @@ function simpletest_script_get_test_list() {
         }
       }
     }
-    else if ($args['file']) {
+    elseif ($args['file']) {
       $files = array();
       foreach ($args['test_names'] as $file) {
         $files[realpath($file)] = 1;
diff --git a/update.php b/update.php
index 6400aaae94262f027abfc76dcc8ef00e68032d4a..98578eb1745b2e33d1640e32278cc38cbad44078 100644
--- a/update.php
+++ b/update.php
@@ -505,7 +505,7 @@ function update_check_incompatibility($name, $type = 'module') {
   if ($type == 'module' && isset($modules[$name])) {
     $file = $modules[$name];
   }
-  else if ($type == 'theme' && isset($themes[$name])) {
+  elseif ($type == 'theme' && isset($themes[$name])) {
     $file = $themes[$name];
   }
   if (!isset($file)