From 17d48d22f7f5f838af768ae8731250ecf7ccd983 Mon Sep 17 00:00:00 2001 From: John E Prescott Date: Tue, 30 Sep 2014 10:12:59 +0100 Subject: [PATCH] Say which extension being operated on This changes the title of the extension form to include the name of the extension being disabled. This makes it clear if users are batch disabling extensions. --- CRM/Admin/Form/Extensions.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/CRM/Admin/Form/Extensions.php b/CRM/Admin/Form/Extensions.php index 50009a888dd6..6f6fabef3e07 100644 --- a/CRM/Admin/Form/Extensions.php +++ b/CRM/Admin/Form/Extensions.php @@ -105,30 +105,34 @@ function setDefaultValues() { */ public function buildQuickForm() { + $info = CRM_Extension_System::singleton()->getMapper()->keyToInfo($this->_key); + $extInfo = CRM_Admin_Page_Extensions::createExtendedInfo($info); + $extName = $extInfo['name']; + switch ($this->_action) { case CRM_Core_Action::ADD: $buttonName = ts('Install'); - $title = ts('Install Extension'); + $title = ts('Install ' . $extName . '?'); break; case CRM_Core_Action::UPDATE: $buttonName = ts('Download and Install'); - $title = ts('Download and Install Extension'); + $title = ts('Download and Install ' . $extName . '?'); break; case CRM_Core_Action::DELETE: $buttonName = ts('Uninstall'); - $title = ts('Uninstall Extension'); + $title = ts('Uninstall ' . $extName . '?'); break; case CRM_Core_Action::ENABLE: $buttonName = ts('Enable'); - $title = ts('Enable Extension'); + $title = ts('Enable ' . $extName . '?'); break; case CRM_Core_Action::DISABLE: $buttonName = ts('Disable'); - $title = ts('Disable Extension'); + $title = ts('Disable ' . $extName . '?'); break; }