From 79dea0b5ffdd1c7ea257cfb5c195d6505d4f26e8 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 20 Oct 2014 13:17:53 -0400 Subject: [PATCH] Define constant for settings group name. * memberdashboard.php (MEMBERDASHBOARD_SETTINGS_GROUP): New constant. * CRM/Memberdashboard/Page/Info.php (CRM_Memberdashboard_Page_Info.run): Use it. --- CRM/Memberdashboard/Page/Info.php | 2 +- memberdashboard.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Memberdashboard/Page/Info.php b/CRM/Memberdashboard/Page/Info.php index 9d62abd..0b6d56b 100644 --- a/CRM/Memberdashboard/Page/Info.php +++ b/CRM/Memberdashboard/Page/Info.php @@ -28,7 +28,7 @@ class CRM_Memberdashboard_Page_Info extends CRM_Core_Page { $profile_id = civicrm_api3('setting', 'getvalue', array( 'name' => 'memberdashboard_info_profile_id', - 'group' => 'Member Dashboard Preferences' + 'group' => MEMBERDASHBOARD_SETTINGS_GROUP )); $resources = CRM_Core_Resources::singleton(); diff --git a/memberdashboard.php b/memberdashboard.php index 881a4f7..da96b3c 100644 --- a/memberdashboard.php +++ b/memberdashboard.php @@ -2,6 +2,8 @@ require_once 'memberdashboard.civix.php'; +define('MEMBERDASHBOARD_SETTINGS_GROUP', 'Member Dashboard Preferences'); + /** * Implementation of hook_civicrm_config * -- 2.25.1