function fb_instant_articles_display_delete_entity_type in Facebook Instant Articles 7.2
Same name and namespace in other branches
- 7 modules/fb_instant_articles_display/fb_instant_articles_display.module \fb_instant_articles_display_delete_entity_type()
Deletes the entity type as an allowable Facebook Instant Article type.
Parameters
string $type: The entity type.
string $bundle: The entity bundle.
1 call to fb_instant_articles_display_delete_entity_type()
- fb_instant_articles_display_node_type_form_submit in modules/
fb_instant_articles_display/ fb_instant_articles_display.module - Submit callback for node type form.
File
- modules/
fb_instant_articles_display/ fb_instant_articles_display.module, line 306 - Hook implementations for Facebook Instant Articles Display module.
Code
function fb_instant_articles_display_delete_entity_type($type, $bundle) {
db_delete('fb_instant_articles_display_entity_types')
->condition('entity_type', $type)
->condition('entity_bundle', $bundle)
->execute();
// Allow other modules to perform actions.
module_invoke_all('fb_instant_articles_display_delete_type', $type, $bundle);
}