function pathauto_i18n_delete_settings in Pathauto i18n 7
Same name and namespace in other branches
- 8 pathauto_i18n.module \pathauto_i18n_delete_settings()
Delete settings for certain entity.
3 calls to pathauto_i18n_delete_settings()
- pathauto_i18n_node_node_delete in modules/
pathauto_i18n_node/ pathauto_i18n_node.module - Implements hook_node_delete().
- pathauto_i18n_taxonomy_taxonomy_term_delete in modules/
pathauto_i18n_taxonomy/ pathauto_i18n_taxonomy.module - Implements hook_taxonomy_term_delete().
- pathauto_i18n_user_user_delete in modules/
pathauto_i18n_user/ pathauto_i18n_user.module - Implements hook_user_delete().
File
- ./
pathauto_i18n.module, line 167 - Provides common functions and callbacks for pathauto_i18n submodules.
Code
function pathauto_i18n_delete_settings($entity_id, $entity_type) {
db_delete('pathauto_i18n')
->condition('entity_id', $entity_id)
->condition('entity_type', $entity_type)
->execute();
}