Mwalker has submitted this change and it was merged.
Change subject: disable Contacts and Contributions export and search stuff.
......................................................................
disable Contacts and Contributions export and search stuff.
Change-Id: I96b46c75b40c576e975df3e35dc3db38040c0762
---
M sites/all/modules/wmf_reports/wmf_reports.module
1 file changed, 39 insertions(+), 37 deletions(-)
Approvals:
Mwalker: Verified; Looks good to me, approved
diff --git a/sites/all/modules/wmf_reports/wmf_reports.module
b/sites/all/modules/wmf_reports/wmf_reports.module
index b14a7f9..bc78245 100644
--- a/sites/all/modules/wmf_reports/wmf_reports.module
+++ b/sites/all/modules/wmf_reports/wmf_reports.module
@@ -11,40 +11,42 @@
set_include_path(get_include_path().PATH_SEPARATOR.dirname(__FILE__));
}
-function wmf_reports_civicrm_advancedSearchModes(&$search_modes)
-{
- $search_modes[] = array(
- 'selectorName' => 'CRM_Contact_Form_ContactAndContributionsSelector',
- 'selectorLabel' => ts( 'Contacts and Contributions' ),
- 'taskFile' => 'CRM/common/searchResultTasks.tpl',
- 'taskClassName' => 'CRM_Contact_Task',
- 'taskContext' => 'Contribution',
- 'resultFile' =>
'CRM/Contact/Form/ContactAndContributionsSelector.tpl',
- 'resultContext' => 'Search',
- );
-}
-
-function wmf_reports_civicrm_searchTasks($type, &$tasks)
-{
- if ($type == 'contact')
- {
- $tasks[] = array(
- 'title' => ts('Export Contact and Contributions'),
- 'class' => array(
- 'CRM_Contact_Form_Task_ContactsAndContributionsExport',
- ),
- );
- }
-}
-
-function wmf_reports_civicrm_export(&$table, &$headerRows, &$sqlColumns,
&$exportMode)
-{
- //XXX this will break all other exports if our export dies
- $export_type = variable_get('wmf_reports_export_inprogress', null);
- variable_del('wmf_reports_export_inprogress');
-
- if ($export_type == 'Contacts and Contributions') {
- require_once 'CRM/Contact/ContactsAndContributionsExport.php';
- CRM_Contact_ContactsAndContributionsExport::alterExport($table,
$headerRows, $sqlColumns, $exportMode);
- }
-}
+/*
+ * function wmf_reports_civicrm_advancedSearchModes(&$search_modes)
+ * {
+ * $search_modes[] = array(
+ * 'selectorName' =>
'CRM_Contact_Form_ContactAndContributionsSelector',
+ * 'selectorLabel' => ts( 'Contacts and Contributions' ),
+ * 'taskFile' => 'CRM/common/searchResultTasks.tpl',
+ * 'taskClassName' => 'CRM_Contact_Task',
+ * 'taskContext' => 'Contribution',
+ * 'resultFile' =>
'CRM/Contact/Form/ContactAndContributionsSelector.tpl',
+ * 'resultContext' => 'Search',
+ * );
+ * }
+ *
+ * function wmf_reports_civicrm_searchTasks($type, &$tasks)
+ * {
+ * if ($type == 'contact')
+ * {
+ * $tasks[] = array(
+ * 'title' => ts('Export Contact and Contributions'),
+ * 'class' => array(
+ * 'CRM_Contact_Form_Task_ContactsAndContributionsExport',
+ * ),
+ * );
+ * }
+ * }
+ *
+ * function wmf_reports_civicrm_export(&$table, &$headerRows, &$sqlColumns,
&$exportMode)
+ * {
+ * //XXX this will break all other exports if our export dies
+ * $export_type = variable_get('wmf_reports_export_inprogress', null);
+ * variable_del('wmf_reports_export_inprogress');
+ *
+ * if ($export_type == 'Contacts and Contributions') {
+ * require_once 'CRM/Contact/ContactsAndContributionsExport.php';
+ * CRM_Contact_ContactsAndContributionsExport::alterExport($table,
$headerRows, $sqlColumns, $exportMode);
+ * }
+ * }
+ */
--
To view, visit https://gerrit.wikimedia.org/r/90458
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I96b46c75b40c576e975df3e35dc3db38040c0762
Gerrit-PatchSet: 2
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
Gerrit-Reviewer: Katie Horn <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits