$this->add('select', 'target_entity_id',
ts('Online Contribution Page'),
array(
- '' => ts('- select -')
+ '' => ts('- select -'),
) +
CRM_Contribute_PseudoConstant::contributionPage()
);
if (!empty($pcpBlock->id) && CRM_PCP_BAO_PCP::getPcpBlockInUse($pcpBlock->id)) {
foreach (array(
'target_entity_type',
- 'target_entity_id'
+ 'target_entity_id',
) as $element_name) {
$element = $this->getElement($element_name);
$element->freeze();
* @param $files
* @param $self
*
- * @return mixed true or array of errors
- * @static
+ * @return bool|array
+ * mixed true or array of errors
*/
public static function formRule($params, $files, $self) {
$errors = array();