function fp_user_is_student
Search API
| 7.x misc.inc | fp_user_is_student($account = null) |
| 6.x misc.inc | fp_user_is_student($account = null) |
Simply returns TRUE or FALSE if the user is a student. (has the is_student == 1
If account is null, the global user will be used.
2 string references to 'fp_user_is_student'
- calendar.module in modules/
calendar/ calendar.module - calendar_menu in modules/
calendar/ calendar.module - implements hook_menu
File
- includes/
misc.inc, line 2232 - This file contains misc functions for FlightPath
Code
function fp_user_is_student($account = null) {
global $user;
if ($account == NULL) {
$account = $user;
}
return (bool) $account->is_student;
}
