You are here

function node_authlink_token_info in Node authorize link 7

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

Implements hook_token_info().

File

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

Code

function node_authlink_token_info() {
  $node['authlink:authkey'] = array(
    'name' => t("Authorization key"),
    'description' => t("Key generated by Node authorize link module."),
  );
  $node['authlink:view-url'] = array(
    'name' => t("View URL"),
    'description' => t("URL with authorization key."),
  );
  $node['authlink:edit-url'] = array(
    'name' => t("Edit URL"),
    'description' => t("URL with authorization key."),
  );
  $node['authlink:delete-url'] = array(
    'name' => t("Delete URL"),
    'description' => t("URL with authorization key."),
  );
  return array(
    'tokens' => array(
      'node' => $node,
    ),
  );
}