function hook_fb_instant_articles_display_set_type in Facebook Instant Articles 7
Same name and namespace in other branches
- 7.2 modules/fb_instant_articles_display/fb_instant_articles_display.api.php \hook_fb_instant_articles_display_set_type()
Sets the entity type as an allowable Facebook Instant Article type.
Perform actions when an fb_instant_article is about to be set.
Parameters
$entity_type: The entity type name.
$bundle: The entity bundle name.
See also
fb_instant_articles_display_set_entity_type()
1 invocation of hook_fb_instant_articles_display_set_type()
- fb_instant_articles_display_set_entity_type in modules/
fb_instant_articles_display/ fb_instant_articles_display.module - Sets the entity type as an allowable Facebook Instant Article type.
File
- modules/
fb_instant_articles_display/ fb_instant_articles_display.api.php, line 58 - Hooks provided by Facebook Instant Articles Display module.
Code
function hook_fb_instant_articles_display_set_type($entity_type, $bundle) {
if ($entity_type == 'node' && $bundle == 'article') {
// Perform some action.
}
}