You are here

function rules_link_access_link in Rules Link 7

Same name and namespace in other branches
  1. 7.2 rules_link.module \rules_link_access_link()

Access callback function for the token and javascript links.

1 string reference to 'rules_link_access_link'
rules_link_menu in ./rules_link.module
Implements hook_menu().

File

./rules_link.module, line 378
Rules Link - module file.

Code

function rules_link_access_link($rules_link, $entity_id) {

  // The token is always the last element of the argument array.
  $params = rules_link_get_paramters($rules_link);
  $token = array_pop($params);
  return rules_link_check_token($token, $entity_id) && rules_link_access_link_confirm($rules_link, $entity_id);
}