function schools_get_school_id_for_user

7.x schools.module schools_get_school_id_for_user($user_id)
6.x schools.module schools_get_school_id_for_user($user_id)
1 call to schools_get_school_id_for_user()

File

modules/schools/schools.module, line 1485
Schools module.

Code

function schools_get_school_id_for_user($user_id) {
  return db_result(db_query("SELECT school_id FROM users WHERE user_id = ?", array($user_id)));
}