You are here

views_add_button.views.inc in Views Add Button 2.0.x

Same filename and directory in other branches
  1. 8 views_add_button.views.inc
  2. 7 views_add_button.views.inc

Views area plugin info for views_add_button.

File

views_add_button.views.inc
View source
<?php

/**
 * @file
 * Views area plugin info for views_add_button.
 */

/**
 * Implements hook_views_data_alter().
 */
function views_add_button_views_data_alter(array &$data) {
  $data['views']['views_add_button'] = [
    'title' => t('Entity Add Button'),
    'help' => t('Render an add button for an entity.'),
    'area' => [
      'id' => 'views_add_button_area',
    ],
  ];
  $data['views']['views_add_button_field'] = [
    'title' => t('Entity Add Button'),
    'help' => t('Render an add button for an entity.'),
    'field' => [
      'id' => 'views_add_button_field',
    ],
  ];
}

Functions