function properties_compare_list_delete in Dynamic properties 7
Delete an entity from the compare list.
Parameters
$entity_type: Entity type of the entity that should be removed.
$entity_id: Entity id of the entity that should be removed.
2 calls to properties_compare_list_delete()
- properties_compare_delete in properties_compare/
properties_compare.pages.inc - Page calllback to remove an entity from the list.
- properties_compare_list_form in properties_compare/
properties_compare.module - Form builder function; display comparison list.
File
- properties_compare/
properties_compare.module, line 187 - Module file for privatemsg_compare module.
Code
function properties_compare_list_delete($entity_type, $entity_id) {
$list =& properties_compare_list();
$id = $entity_type . '_' . $entity_id;
if (isset($list[$id])) {
unset($list[$id]);
}
}