You are here

function views_add_button_views_data in Views Add Button 7

Implements hook_views_data().

The first key in the data array is the entity type, e.g. node ot taxonomy_term, with "views" being global.

Also, after title and help, the 'field' key creates a field to be used in rows, whereas the 'area' key is used for the header and footer.

File

./views_add_button.views.inc, line 34
Views definitions for 'views_add_button'

Code

function views_add_button_views_data() {
  $data = array();
  $data['views']['views_add_button_area'] = array(
    'title' => t('Node Add Button'),
    'help' => t('Render an add button for a selected content type, and add parameters'),
    'area' => array(
      'handler' => 'views_add_button_area',
    ),
  );
  return $data;
}