$data[1] = 'page test';
} elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) {
$data[1] = 'loggedin';
+ } elseif (array_key_exists('_LOGGEDIN_', $data)) {
+ $data[1] = 'loggedin';
+ $data[2] = $data['_LOGGEDIN_'];
} else {
$data[1] = $data[0];
}
return $data;
}
+
+function hook_test_error()
+{
+ new Unknown();
+}