function schools_get_school_id_from_school_code

7.x schools.module schools_get_school_id_from_school_code($code)
6.x schools.module schools_get_school_id_from_school_code($code)
1 call to schools_get_school_id_from_school_code()

File

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

Code

function schools_get_school_id_from_school_code($code) {
  return db_result(db_query("SELECT school_id FROM schools WHERE school_code = ?", strtoupper(trim($code))));
}