function properties_compare_list_add in Dynamic properties 7
Add a new entity to the compare list.
Parameters
$entity_type: Type of entity, for example node or comment.
$entity: Entity object.
1 call to properties_compare_list_add()
- properties_compare_add_form_submit in properties_compare/
properties_compare.module - Submit callback for add form.
File
- properties_compare/
properties_compare.module, line 203 - Module file for privatemsg_compare module.
Code
function properties_compare_list_add($entity_type, $entity) {
$list =& properties_compare_list();
list($id, , ) = entity_extract_ids($entity_type, $entity);
$list[properties_compare_create_key($entity_type, $entity)] = array(
'entity_type' => $entity_type,
'entity_id' => $id,
);
}