light9
11/4/2014 - 5:49 AM

insert rules link with computed field

insert rules link with computed field

$entity_id = array_shift(entity_extract_ids($entity_type,$entity));
$destination = drupal_get_destination();
$parameters = array();
$rules_link = rules_link_render('call', $entity_id, $destination, $parameters);
$display_output = render($rules_link);