function fb_instant_articles_views_data_alter in Facebook Instant Articles 8
Implements hook_views_data_alter().
File
- ./
fb_instant_articles.views.inc, line 6
Code
function fb_instant_articles_views_data_alter(array &$data) {
$data['node_field_data']['fb_instant_articles'] = array(
'title' => t('Valid Facebook instant articles filter'),
'filter' => array(
'title' => t('Valid Facebook instant articles filter'),
'help' => t('Filter for items that should be listed in the facebook instant articles pages.'),
'field' => 'type',
// we are actually filtering by type really, so we declare this as the field (is it skipped?)
'id' => 'validfacebookinstantarticles',
),
);
}