/**
* Variable defined for Contribution Page Id
- *
*/
public $_pageId = NULL;
public function preProcess() {
- $session = CRM_Core_Session::singleton();
- $config = CRM_Core_Config::singleton();
- $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
- $this->_pageId = CRM_Utils_Request::retrieve('pageId', 'Positive', $this);
+ $session = CRM_Core_Session::singleton();
+ $config = CRM_Core_Config::singleton();
+ $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
+ $this->_pageId = CRM_Utils_Request::retrieve('pageId', 'Positive', $this);
$this->_component = CRM_Utils_Request::retrieve('component', 'String', $this);
- $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
+ $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
if (!$this->_pageId && $config->userFramework == 'Joomla' && $config->userFrameworkFrontend) {
$this->_pageId = $this->_id;
if ($this->_single) {
$button = array(
array(
- 'type' => 'next',
+ 'type' => 'next',
'name' => ts('Save'),
'spacing' => ' ',
'isDefault' => TRUE,
else {
$button[] = array(
'type' => 'next',
- 'name' => ts('Continue >>'),
+ 'name' => ts('Continue'),
'spacing' => ' ',
'isDefault' => TRUE,
);
* @param $self
*
*
- * @return true if no errors, else array of errors
- * @static
+ * @return bool|array
+ * true if no errors, else array of errors
*/
public static function formRule($fields, $files, $self) {
$errors = array();