/[drupal]/contributions/modules/views/modules/contact.views.inc
ViewVC logotype

Contents of /contributions/modules/views/modules/contact.views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Jun 1 21:55:36 2009 UTC (5 months, 3 weeks ago) by merlinofchaos
Branch: MAIN
CVS Tags: DRUPAL-6--2-7, DRUPAL-6--2-6, HEAD
Branch point for: DRUPAL-6--2, DRUPAL-6--3, DRUPAL-7--3
File MIME type: text/x-php
#154865 by Zack Rosen, josh_k and KarenS: Allow user contact form as a field.
1 <?php
2 //$Id$
3 /**
4 * @file
5 * Provide views data and handlers for contact.module
6 */
7
8 function contact_views_data() {
9 $data['users']['contact'] = array(
10 'field' => array(
11 'title' => t('Link to contact page'),
12 'help' => t('Provide a simple link to the user contact page.'),
13 'handler' => 'views_handler_field_contact_link',
14 ),
15 );
16 return $data;
17 }
18 /**
19 * Implementation of hook_views_handlers() to register all of the basic handlers
20 * views uses.
21 */
22 function contact_views_handlers() {
23 return array(
24 'info' => array(
25 'path' => drupal_get_path('module', 'views') . '/modules/contact',
26 ),
27 'handlers' => array(
28 'views_handler_field_contact_link' => array(
29 'parent' => 'views_handler_field_user_link',
30 ),
31 ),
32 );
33 }

  ViewVC Help
Powered by ViewVC 1.1.2