summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.admin.inc2
-rw-r--r--modules/profile/profile.module8
-rw-r--r--modules/profile/profile.pages.inc2
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc
index 5219dffed..01f3bda32 100644
--- a/modules/profile/profile.admin.inc
+++ b/modules/profile/profile.admin.inc
@@ -254,7 +254,7 @@ Unless you know what you are doing, it is highly recommended that you prefix the
'#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 abb70d9c1..9352f4b3b 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 52946376b..4c1e3678c 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 {