You are here

function rules_link_check_visibility in Rules Link 7

Same name and namespace in other branches
  1. 7.2 rules_link.module \rules_link_check_visibility()
2 calls to rules_link_check_visibility()
rules_link_access_link_confirm in ./rules_link.module
Access callback function for confirm type links.
rules_link_render_link in ./rules_link.module
Renders a link.

File

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

Code

function rules_link_check_visibility($rules_link, $args) {
  $rule_set = rules_link_load_rules_set($rules_link);
  $paramInfo = $rule_set
    ->parameterInfo();
  return count($args) >= count($paramInfo) && user_access("access rules link " . $rules_link->name) && rules_link_invoke_component(rules_link_get_condition_set_name($rules_link), $args);
}