You are here

function shurly_get_api_key in ShURLy 6

Same name and namespace in other branches
  1. 8 shurly_service/shurly_api_keys.inc \shurly_get_api_key()
  2. 7 shurly_service/shurly_api_keys.inc \shurly_get_api_key()
2 calls to shurly_get_api_key()
shurly_api_key_form in shurly_service/shurly_service.module
Form callback; Display a form with a textfield containing a user's API key.
shurly_service_get_key in shurly_service/shurly_service.inc

File

shurly_service/shurly_api_keys.inc, line 24

Code

function shurly_get_api_key($uid) {
  return db_result(db_query("SELECT apikey FROM {shurly_keys} WHERE uid = %d", $uid));
}