$session = CRM_Core_Session::singleton();
$url = CRM_Utils_System::url('civicrm/admin/member/membershipType', 'reset=1');
$session->pushUserContext($url);
+
+ $this->setPageTitle(ts('Membership Type'));
}
/**
);
$this->addRule('minimum_fee', ts('Please enter a monetary value for the Minimum Fee.'), 'money');
- $this->addSelect('duration_unit', array('placeholder' => NULL), TRUE);
+ $this->addSelect('duration_unit', array(), TRUE);
//period type
$this->addSelect('period_type', array(), TRUE);
$memberRel->setMultiple(TRUE);
$this->addSelect('visibility', array('placeholder' => NULL, 'option_url' => NULL));
+
$this->add('text', 'weight', ts('Order'),
CRM_Core_DAO::getAttribute('CRM_Member_DAO_MembershipType', 'weight')
);
}
}
+ /**
+ * @param $previousID
+ * @param $priceSetId
+ * @param $membershipTypeId
+ * @param $optionsIds
+ */
public static function checkPreviousPriceField($previousID, $priceSetId, $membershipTypeId, &$optionsIds) {
if ($previousID) {
$editedFieldParams = array(