Commit d7aa917fe3d92a3b10a2d1133aeff31a18a01097
1 parent
21c969f7
added status lookup method
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1938 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
0 deletions
lib/database/lookup.inc
| ... | ... | @@ -35,6 +35,11 @@ function lookupName($tableName, $idFieldValue){ |
| 35 | 35 | return lookupField($tableName, "name", "id", $idFieldValue); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | +function lookupStatusID($statusName) { | |
| 39 | + global $default; | |
| 40 | + return lookupID($default->owl_status_table, "name", $statusName); | |
| 41 | +} | |
| 42 | + | |
| 38 | 43 | /** |
| 39 | 44 | * Retrieves the groups that the user is a member of |
| 40 | 45 | * | ... | ... |