You are here

function node_authlink_load_authkey in Node authorize link 7

Same name and namespace in other branches
  1. 8 node_authlink.module \node_authlink_load_authkey()

Loads key from NID.

Parameters

string $nid: The node id.

Return value

string The authkey.

1 call to node_authlink_load_authkey()
node_authlink_node_load in ./node_authlink.module
Implements hook_node_load().

File

./node_authlink.module, line 162
Provides functionality for the node_authlink module.

Code

function node_authlink_load_authkey($nid) {
  $result = db_query('SELECT authkey FROM {node_authlink_nodes} WHERE nid = :nid', array(
    ':nid' => $nid,
  ));
  return $result
    ->fetchField();
}