+ $this->add('text', 'honor_block_title', ts('Honoree Section Title'), array('maxlength' => 255, 'size' => 45));
+
+ $this->add('textarea', 'honor_block_text', ts('Honoree Introductory Message'), array('rows' => 2, 'cols' => 50));
+
+ $softCreditTypes = &$this->add('select', 'soft_credit_types',
+ ts('Honor Types'),
+ CRM_Core_OptionGroup::values("soft_credit_type", FALSE),
+ FALSE,
+ array(
+ 'id' => 'soft_credit_types',
+ 'multiple' => 'multiple',
+ 'title' => '- ' . ts('select') . ' -',
+ )
+ );
+
+ $entities = array(
+ array('entity_name' => 'contact_1',
+ 'entity_type' => 'IndividualModel'
+ ),
+ array('entity_name' => 'organization_1',
+ 'entity_type' => 'OrganizationModel'
+ ),
+ array('entity_name' => 'household_1',
+ 'entity_type' => 'HouseholdModel'
+ ),
+ );
+ $allowCoreTypes = array_merge(array('Contact', 'Individual', 'Organization', 'Household'), CRM_Contact_BAO_ContactType::subTypes('Individual'));
+ $allowSubTypes = array();
+
+ $this->addProfileSelector('honoree_profile', ts('Honoree Profile'), $allowCoreTypes, $allowSubTypes, $entities);