You are here

function fb_instant_articles_views_views_data_alter in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 modules/fb_instant_articles_views/fb_instant_articles_views.views.inc \fb_instant_articles_views_views_data_alter()
  2. 7.2 modules/fb_instant_articles_views/views/fb_instant_articles_views.views.inc \fb_instant_articles_views_views_data_alter()
  3. 7 modules/fb_instant_articles_views/views/fb_instant_articles_views.views.inc \fb_instant_articles_views_views_data_alter()

Implements hook_views_data_alter().

File

modules/fb_instant_articles_views/fb_instant_articles_views.views.inc, line 11
Views hooks.

Code

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',
    ],
  ];
}