fb_instant_articles_views.views.inc in Facebook Instant Articles 3.x
Same filename and directory in other branches
Views hooks.
File
modules/fb_instant_articles_views/fb_instant_articles_views.views.incView source
<?php
/**
* @file
* Views hooks.
*/
/**
* Implements hook_views_data_alter().
*/
function fb_instant_articles_views_views_data_alter(array &$data) {
$data['node_field_data']['fb_instant_articles_views'] = [
'title' => t('Valid Facebook Instant Articles filter'),
'filter' => [
'title' => t('Valid Facebook Instant Articles filter'),
'help' => t('Filter for items that should be listed in the Facebook Instant Articles pages.'),
// We are actually filtering by type really, so we declare this as the
// field (is it skipped?).
'field' => 'type',
'id' => 'validfacebookinstantarticles',
],
];
}
Functions
Name | Description |
---|---|
fb_instant_articles_views_views_data_alter | Implements hook_views_data_alter(). |