function rules_link_render in Rules Link 7
Same name and namespace in other branches
- 7.2 rules_link.module \rules_link_render()
Renders a link using the name of the rules_link and the entity id.
Parameters
$rules_link_name: The name the link which should be rendered.
$entity_id: The entity id of entity on which the rule should be triggered.
$destination: The destination to which the Rules Module should redirect the user after triggering the link.
$parameters: Additional parameters for the Rules components of the link.
Return value
A renderable array.
File
- ./
rules_link.module, line 164 - Rules Link - module file.
Code
function rules_link_render($rules_link_name, $entity_id, $destination = NULL, $parameters = array()) {
$rules_link = rules_link_load($rules_link_name);
return rules_link_render_link($rules_link, $entity_id, $destination, $parameters);
}