You are here

function node_authlink_token_info in Node authorize link 8

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

Implementation of hook_token_info().

File

./node_authlink.module, line 430
Node Authlink hooks and alters.

Code

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