class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
/**
- * Function to for pre-processing
+ * For pre-processing
*
* @return void
* @access public
}
/**
- * 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
}
/**
- * Function to build the form
+ * Build the form object
*
* @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');
- $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;
}
}
/**
- * global form rule
+ * Global form rule
*
* @param array $fields the input form values
* @param array $files the uploaded files if any
}
/**
- * Function to process the form
+ * Process the form submission
*
* @access public
*