function user_relationship_blocks_user_relationships_type_delete in User Relationships 7
Implements hook_user_relationships_type_delete().
File
- user_relationship_blocks/
user_relationship_blocks.module, line 22 - User Relationship Blocks implementation @author Jeff Smick (creator) @author Alex Karshakevich (maintainer) http://drupal.org/user/183217
Code
function user_relationship_blocks_user_relationships_type_delete($rtype) {
db_delete('user_relationship_blocks')
->condition('bid', '%-' . UR_BLOCK_SEPARATOR . $rtype->rtid . '%', 'LIKE')
->execute();
}