You are here

fb_instant_articles_views.views.inc in Facebook Instant Articles 3.x

Views hooks.

File

modules/fb_instant_articles_views/fb_instant_articles_views.views.inc
View 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',
    ],
  ];
}