Skip to content

Instantly share code, notes, and snippets.

@bcmiller
Created February 8, 2012 00:30
Show Gist options
  • Save bcmiller/1763432 to your computer and use it in GitHub Desktop.
Save bcmiller/1763432 to your computer and use it in GitHub Desktop.
statusbook-odd.txt
$items['user/%/edit/preferences'] = array(
'title' => t('Site Preferences'),
'page callback' => 'statusbook_preferences',
@@ -338,9 +337,11 @@ function statusbook_user($op, $edit, &$account, $category =
break;
case 'load':
// add statusbook-specific information
- $SQL = "SELECT privacy_data FROM {statusbook_users} S WHERE uid = %s";
+ $SQL = "SELECT * FROM {statusbook_users} S WHERE uid = %s";
$record = db_fetch_object(db_query($SQL, $account->uid));
if (!empty($record)) {
+ $account->status_txt = $record->status_txt;
+ $account->status_txt_changed = $record->status_txt_changed;
$account->privacy_data = $record->privacy_data;
}
// hide the avatar if the user does not have permission to see it
@@ -370,7 +371,6 @@ function statusbook_user($op, $edit, &$account, $category =
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment