if ($this->_action == CRM_Core_Action::DELETE) {
if ($this->_id) {
CRM_Core_BAO_Mapping::del($this->_id);
+ CRM_Core_Session::setStatus(ts('Selected mapping has been deleted successfully.'), ts('Deleted'), 'success');
}
}
else {
$mapping->id = $id;
if ($mapping->find(TRUE)) {
$result = $mapping->delete();
- CRM_Core_Session::setStatus(ts('Selected mapping has been deleted successfully.'), ts('Deleted'), 'success');
return $result;
}
return FALSE;
<field>
<name>id</name>
<type>int unsigned</type>
+ <title>Mapping ID</title>
<required>true</required>
<comment>Mapping ID</comment>
<add>1.2</add>
<field>
<name>mapping_type_id</name>
<type>int unsigned</type>
+ <title>Mapping Type</title>
<comment>Mapping Type</comment>
<add>2.1</add>
<pseudoconstant>
<field>
<name>id</name>
<type>int unsigned</type>
+ <title>Mapping Field ID</title>
<required>true</required>
<comment>Mapping Field ID</comment>
<add>1.2</add>
<field>
<name>mapping_id</name>
<type>int unsigned</type>
+ <title>Mapping ID</title>
<required>true</required>
<comment>Mapping to which this field belongs</comment>
<add>1.2</add>
<field>
<name>location_type_id</name>
<type>int unsigned</type>
+ <title>Location type ID</title>
<comment>Location type of this mapping, if required</comment>
<add>1.2</add>
</field>
<field>
<name>phone_type_id</name>
<type>int unsigned</type>
+ <title>Phone type ID</title>
<comment>Which type of phone does this number belongs.</comment>
<add>2.2</add>
</field>
<field>
<name>im_provider_id</name>
<type>int unsigned</type>
+ <title>IM provider ID</title>
<comment>Which type of IM Provider does this name belong.</comment>
<add>3.0</add>
<pseudoconstant>