$form->applyFilter('__ALL__', 'trim');
//IM provider select
- $form->addSelect("im[$blockId][provider_id]", array('entity' => 'im', 'class' => 'eight', 'placeholder' => NULL));
-
+ $form->addField("im[$blockId][provider_id]", array('entity' => 'im', 'class' => 'eight', 'placeholder' => NULL));
//Block type select
- $form->addSelect("im[$blockId][location_type_id]", array(
- 'entity' => 'im',
- 'class' => 'eight',
- 'placeholder' => NULL,
- ));
+ $form->addField("im[$blockId][location_type_id]", array('entity' => 'im', 'class' => 'eight', 'placeholder' => NULL));
//IM box
- $form->addElement('text', "im[$blockId][name]", ts('Instant Messenger'),
- CRM_Core_DAO::getAttribute('CRM_Core_DAO_IM', 'name')
- );
-
+ $form->addField("im[$blockId][name]", array('entity' => 'im'));
//is_Primary radio
$js = array('id' => 'IM_' . $blockId . '_IsPrimary');
if (!$blockEdit) {
<labelColumn>display_name</labelColumn>
</pseudoconstant>
<add>2.0</add>
+ <html>
+ <type>Select</type>
+ </html>
</field>
<index>
<name>index_location_type</name>
<dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern>
<comment>IM screen name</comment>
<add>1.1</add>
+ <html>
+ <type>Text</type>
+ </html>
</field>
<field>
<name>provider_id</name>