send most action links thru hook_civicrm_links
[civicrm-core.git] / CRM / Pledge / Selector / Search.php
index 65147a91b7d9ced7d1113a7e8b9442e196cb7055..fb8c50201c32caa9070318b5e16505ac8600f091 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -77,7 +77,7 @@ class CRM_Pledge_Selector_Search extends CRM_Core_Selector_Base {
     'pledge_status',
     'pledge_is_test',
     'pledge_contribution_page_id',
-    'pledge_contribution_type',
+    'pledge_financial_type',
     'pledge_campaign_id',
     'pledge_currency',
   );
@@ -188,7 +188,11 @@ class CRM_Pledge_Selector_Search extends CRM_Core_Selector_Base {
    * @access public
    *
    */
-  static function &links($hideOption, $key = NULL) {
+  static function &links() {
+    $args = func_get_args();
+    $hideOption = CRM_Utils_Array::value(0, $args);
+    $key = CRM_Utils_Array::value(1, $args);
+
     $extraParams = ($key) ? "&key={$key}" : NULL;
 
     $cancelExtra = ts('Cancelling this pledge will also cancel any scheduled (and not completed) pledge payments.') . ' ' . ts('This action cannot be undone.') . ' ' . ts('Do you want to continue?');
@@ -344,7 +348,12 @@ class CRM_Pledge_Selector_Search extends CRM_Core_Selector_Base {
           'id' => $result->pledge_id,
           'cid' => $result->contact_id,
           'cxt' => $this->_context,
-        )
+        ),
+        ts('more'),
+        FALSE,
+        'pledge.selector.row',
+        'Pledge',
+        $result->pledge_id
       );
 
 
@@ -396,7 +405,7 @@ class CRM_Pledge_Selector_Search extends CRM_Core_Selector_Base {
         ),
         array(
           'name' => ts('Pledged For'),
-          'sort' => 'pledge_contribution_type',
+          'sort' => 'pledge_financial_type',
           'direction' => CRM_Utils_Sort::DONTCARE,
         ),
         array(