function shurly_get_uid in ShURLy 7
Same name and namespace in other branches
- 8 shurly_service/shurly_api_keys.inc \shurly_get_uid()
- 6 shurly_service/shurly_api_keys.inc \shurly_get_uid()
4 calls to shurly_get_uid()
- shurly_generate_new_api_key in shurly_service/
shurly_api_keys.inc - Generate a new api key for this user and put it into the database
- shurly_service_access_api_key in shurly_service/
shurly_service.module - shurly_service_expand in shurly_service/
shurly_service.inc - Callback for shurly/api/shorten
- shurly_service_shorten in shurly_service/
shurly_service.inc - Callback for shurly/api/shorten
File
- shurly_service/
shurly_api_keys.inc, line 23
Code
function shurly_get_uid($key) {
return db_query("SELECT uid FROM {shurly_keys} WHERE apikey = :key", array(
'key' => $key,
))
->fetchField();
}