fb_instant_articles_rss.api.php in Facebook Instant Articles 7.2
Same filename and directory in other branches
Hooks provided by Facebook Instant Articles RSS module.
File
modules/fb_instant_articles_rss/fb_instant_articles_rss.api.phpView source
<?php
/**
* @file
* Hooks provided by Facebook Instant Articles RSS module.
*/
/**
* Allows modules to alter if an entity is a Facebook Instant Article.
*
* @param bool $is_type
* By reference. Whether or not the entity is a Facebook Instant
* Article.
* @param int $entity_id
* The entity ID.
*
* @see fb_instant_articles_rss_is_article()
*/
function hook_fb_instant_articles_rss_is_article_alter(&$is_type, $entity_id) {
}
/**
* Allows modules to perform actions after setting an entity as a Facebook
* Instant Article.
*
* @param int $id
* @param bool $enabled
*
* @see fb_instant_articles_rss_set_entity()
*/
function hook_fb_instant_articles_rss_set_entity($id, $enabled) {
}
/**
* Allows modules to perform actions after unsetting an entity as a Facebook
* Instant Article
*
* @param bool $id
* The entity ID that has been unset.
*
* @see fb_instant_articles_rss_delete_entity()
*/
function hook_fb_instant_articles_rss_delete_entity($id) {
}
Functions
Name | Description |
---|---|
hook_fb_instant_articles_rss_delete_entity | Allows modules to perform actions after unsetting an entity as a Facebook Instant Article |
hook_fb_instant_articles_rss_is_article_alter | Allows modules to alter if an entity is a Facebook Instant Article. |
hook_fb_instant_articles_rss_set_entity | Allows modules to perform actions after setting an entity as a Facebook Instant Article. |