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.
1 string reference to 'fp_user_is_student'
- calendar_menu in modules/
calendar/ calendar.module - implements hook_menu
File
- includes/
misc.inc, line 1954 - 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;
}