function login_destination_load in Login Destination 7
Load a login destination.
File
- ./
login_destination.module, line 106 - Control where users are directed to, once they login
Code
function login_destination_load($id) {
$result = db_select('login_destination', 'l')
->fields('l')
->condition('id', $id)
->execute()
->fetchAssoc();
$result['triggers'] = unserialize($result['triggers']);
if (empty($result['triggers'])) {
$result['triggers'] = array();
}
$result['roles'] = unserialize($result['roles']);
if (empty($result['roles'])) {
$result['roles'] = array();
}
return $result;
}