You are here

function views_ifempty_views_data in Views If Empty 8

Same name and namespace in other branches
  1. 6 views_ifempty.views.inc \views_ifempty_views_data()
  2. 7 includes/views/views_ifempty.views.inc \views_ifempty_views_data()

Implements hook_views_data().

File

./views_ifempty.views.inc, line 11
Include file for defining views handlers and data.

Code

function views_ifempty_views_data() {
  $data['views_ifempty']['table']['group'] = t('Views If Empty');
  $data['views_ifempty']['table']['join'] = array(
    '#global' => array(),
  );
  $data['views_ifempty']['views_ifempty'] = array(
    'title' => t('Views If Empty'),
    'help' => t('Output a field if another field is empty'),
    'field' => array(
      'id' => 'views_ifempty',
    ),
  );
  return $data;
}