function example_user_load_multiple in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/tests/old/samples/example.module \example_user_load_multiple()
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 1973
Code
function example_user_load_multiple() {
// user_load() -- Change the next line but leave this alone
user_load();
user_load(100);
user_load('100');
$uid = 100;
user_load($uid);
$uid = '100';
user_load($uid);
$user_params = array(
'uid' => arg(1),
);
user_load($user_params);
$user_params = array(
'name' => $edit['author'],
);
user_load($user_params);
$user_params = array(
'uid' => arg(1),
'mail' => $name,
'status' => 1,
);
user_load($user_params);
if (isset($edit['author']) && !($account = user_load(array(
'name' => $edit['author'],
)))) {
form_set_error('author', t('You have to specify a valid author.'));
}
$account = user_load(array(
'uid' => $node->uid,
));
if ($account = user_load(array(
'uid' => arg(1),
))) {
}
if ($account = user_load(array(
'uid' => arg(1),
'mail' => $name,
'status' => 1,
))) {
}
$user = user_load(array(
'uid' => $array['uid'],
));
$account = user_load(array(
'uid' => (int) $uid,
));
$account = user_load(array(
'mail' => $name,
'status' => 1,
));
}