function sms_user_load in SMS Framework 6
Same name and namespace in other branches
- 5 modules/sms_user/sms_user.module \sms_user_load()
- 6.2 modules/sms_user/sms_user.module \sms_user_load()
1 call to sms_user_load()
- sms_user_user in modules/
sms_user/ sms_user.module - Implmentation of hook_user().
File
- modules/
sms_user/ sms_user.module, line 327 - Provides integration between the SMS Framework and Drupal users.
Code
function sms_user_load(&$edit, &$account, $category) {
$result = db_query("SELECT number, delta, status, code, gateway FROM {sms_user} WHERE uid = %d", $account->uid);
while ($data = db_fetch_array($result)) {
if ($data) {
$account->sms_user[$data['delta']] = array(
'number' => $data['number'],
'status' => $data['status'],
'code' => $data['code'],
'gateway' => unserialize($data['gateway']),
);
}
}
}