You are here

lightbox2.views.inc in Lightbox2 6

Same filename and directory in other branches
  1. 8 lightbox2.views.inc
  2. 7.2 lightbox2.views.inc
  3. 7 lightbox2.views.inc

File

lightbox2.views.inc
View source
<?php

/**
 * @file
 * lightbox2.views.inc
 */

/**
 * Implementation of hook_views_data()
 */
function lightbox2_views_data() {
  $data['lightbox2']['table']['group'] = t('Lightbox');
  $data['lightbox2']['table']['join'] = array(
    '#global' => array(),
  );
  $data['lightbox2']['lightbox2'] = array(
    'group' => t('Lightbox'),
    'field' => array(
      'title' => t('Lightbox trigger'),
      'help' => t('Provide custom text or link.'),
      'handler' => 'lightbox2_handler_field_lightbox2',
    ),
  );
  return $data;
}

/**
 * Implementation of hook_views_handlers() to register all of the basic handlers
 * views uses.
 */
function lightbox2_views_handlers() {
  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'lightbox2'),
    ),
    'handlers' => array(
      'lightbox2_handler_field_lightbox2' => array(
        'parent' => 'views_handler_field',
      ),
    ),
  );
}

Functions

Namesort descending Description
lightbox2_views_data Implementation of hook_views_data()
lightbox2_views_handlers Implementation of hook_views_handlers() to register all of the basic handlers views uses.