home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (lightbox2.views.inc)

This example Drupal source code file (lightbox2.views.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, custom, file, function, group, handlers, info, lightbox2_handler_field_lightbox2, php, return, text, title, trigger, views_handler_field

The lightbox2.views.inc Drupal example source code

<?php
// $Id: lightbox2.views.inc,v 1.1.2.1 2009/09/05 09:52:26 snpower Exp $

/**
 * @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',
      ),
    ),
  );
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal lightbox2.views.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.