// Get the permissions into a format that matches what we get from WP
$allWarningPermissions = CRM_Core_Permission::getAnonymousPermissionsWarnings();
foreach ($allWarningPermissions as $key => $permission) {
- $allWarningPermissions[$key] = CRM_utils_String::munge(strtolower($permission));
+ $allWarningPermissions[$key] = CRM_Utils_String::munge(strtolower($permission));
}
$warningPermissions = array_intersect($allWarningPermissions, array_keys($rolePermissions));
$warningPermissionNames = array();
return TRUE;
}
- return parent::formrule($fields, $files, $self);
+ return parent::formRule($fields, $files, $self);
}
/**
* Build all the data structures needed to build the form.
*/
public function preProcess() {
- parent::preprocess();
+ parent::preProcess();
// set print view, so that print templates are called
$this->controller->setPrint(1);
curl_close($submit);
- $responseFields = $this->_ParseArbReturn($response);
+ $responseFields = $this->_parseArbReturn($response);
$message = "{$responseFields['code']}: {$responseFields['text']}";
if ($responseFields['resultCode'] == 'Error') {
$dao = CRM_Core_DAO::executeQuery($sql, '');
while ($dao->fetch()) {
if ($dao->is_active != '1') {
- return;
+ return FALSE;
}
}
$discounted_priceset_ids = _cividiscount_get_discounted_priceset_ids();