You are here

function alchemy_get_apikey in Alchemy 6

Same name and namespace in other branches
  1. 7 alchemy.module \alchemy_get_apikey()

Returns api key sent in alchemy settings admin

2 calls to alchemy_get_apikey()
alchemy_contentanalysis_analyzer in modules/alchemy_contentanalysis/alchemy_contentanalysis.module
Implementation of hook_analyzer() via custom define callback
alchemy_new_alchemy_obj in ./alchemy.module

File

./alchemy.module, line 212
DO NOT COMMIT TO DRUPAL CONTRIB! THIS MODULE IS FOR DEVELOPMENT ONLY.

Code

function alchemy_get_apikey() {
  $apikey = variable_get('alchemy_apikey', '');
  if (!$apikey) {
    $msg = alchemy_get_message_apimissing();
    drupal_set_message($msg);
    return false;
  }
  return $apikey;
}