projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mass cleanup of docblocks/code/comments
[civicrm-core.git]
/
CRM
/
Admin
/
Form
/
Extensions.php
diff --git
a/CRM/Admin/Form/Extensions.php
b/CRM/Admin/Form/Extensions.php
index bc539c7e0291f13162195d8500f9c08ebae2ae77..45ef29169469f64ba7855f9d91633b7c0cefb740 100644
(file)
--- a/
CRM/Admin/Form/Extensions.php
+++ b/
CRM/Admin/Form/Extensions.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
4
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-40,7
+40,7
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
/**
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
/**
- *
Function to
for pre-processing
+ * for pre-processing
*
* @return void
* @access public
*
* @return void
* @access public
@@
-85,7
+85,7
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
}
/**
}
/**
- *
This function sets the
default values for the form.
+ *
Set
default values for the form.
* the default values are retrieved from the database
*
* @access public
* the default values are retrieved from the database
*
* @access public
@@
-98,37
+98,41
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
}
/**
}
/**
- *
Function to build the form
+ *
Build the form object
*
* @return void
* @access public
*/
public function buildQuickForm() {
*
* @return void
* @access public
*/
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');
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');
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');
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');
break;
case CRM_Core_Action::ENABLE:
$buttonName = ts('Enable');
- $title = ts('Enable
Extension
');
+ $title = ts('Enable
' . $extName . '?
');
break;
case CRM_Core_Action::DISABLE:
break;
case CRM_Core_Action::DISABLE:
- $buttonName =
'Disable'
;
- $title = ts('Disable
Extension
');
+ $buttonName =
ts('Disable')
;
+ $title = ts('Disable
' . $extName . '?
');
break;
}
break;
}
@@
-165,7
+169,7
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
}
/**
}
/**
- *
Function to process the form
+ *
Process the form submission
*
* @access public
*
*
* @access public
*