the hook per comments looks like
hook looks like
```
/**
* Add dedupe searches to actions available.
*
* @param array $actions
* @param int $contactID
*/
function dedupetools_civicrm_summaryActions(&$actions, $contactID) {
try {
$ruleGroups = civicrm_api3('RuleGroup', 'get', array(
'contact_type' => civicrm_api3('Contact', 'getvalue' , array('id' => $contactID, 'return' => 'contact_type')),
));
$weight = 500;
$contactIDS = array($contactID);
foreach ($ruleGroups['values'] as $ruleGroup) {
$actions['otherActions']['dupe' . $ruleGroup['id']] = array(
'title' => ts('Find matches using Rule : %1', array(1 => $ruleGroup['title'])),
'name' => ts('Find matches using Rule : %1', array(1 => $ruleGroup['title'])),
'weight' => $weight,
'ref' => 'dupe-rule crm-contact_activities-list',
'key' => 'dupe' . $ruleGroup['id'],
'href' => CRM_Utils_System::url('civicrm/contact/dedupefind', array(
'reset' => 1,
'action' => 'update',
'rgid' => $ruleGroup['id'],
'criteria' => json_encode(array('contact' => array('id' => array('IN' => $contactIDS)))),
'limit' => count($contactIDS),
)),
);
$weight++;
}
}
catch (CiviCRM_API3_Exception $e) {
// This would most likely happen if viewing a deleted contact since we are not forcing
// them to be returned. Keep calm & carry on.
}
}
```