You are here

function views_megarow_views_data_alter in Views Megarow 7

Implements hook_views_data_alter().

File

includes/views/views_megarow.views.inc, line 6

Code

function views_megarow_views_data_alter(&$data) {

  // Expose generally usable entity-related fields.
  foreach (entity_get_info() as $entity_type => $info) {
    $data['views_entity_' . $entity_type]['megarow_links'] = array(
      'title' => t('Megarow links'),
      'help' => t('Outputs links that launch the megarow.'),
      'field' => array(
        'handler' => 'views_handler_field_megarow_links',
      ),
    );
  }
}