user_fields
modules/user/user.module, строка 404
- Версии
- 5 – 6
user_fields()
Код
<?php
function user_fields() {
static $fields;
if (!$fields) {
$result = db_query('SELECT * FROM {users} WHERE uid = 1');
if (db_num_rows($result)) {
$fields = array_keys(db_fetch_array($result));
}
else {
// Make sure we return the default fields at least
$fields = array('uid', 'name', 'pass', 'mail', 'picture', 'mode', 'sort', 'threshold', 'theme', 'signature', 'created', 'access', 'login', 'status', 'timezone', 'language', 'init', 'data');
}
}
return $fields;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии