hook_views_data

hook_views_data data multiple nid in the same table

  1. /* field defs */
  2. $data['mytable']['nid_1'] = array(
  3.  
  4.     'title' => t('Node Id 1'),
  5.  
  6.     'help' => t('Nid of the xx node.'), // The help that appears on the UI,
  7.  
  8.     // Information for displayi

Re:

  1. freelance writer
seanr's picture

Shows "array" in filter list group dropdown instead of budget partners group

  1. <?php
  2.  
  3. /**
  4.  * Implementation of hook_views_data().
  5.  */
  6. function dped_browser_views_data() {
  7.   $data = array();
  8.  
  9.   /**
  10.    * Expose budget_partners table to views.
  11.    */
  12.   $data['budget_par

Fix for history data for recently viewed nodes

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * Implementation of hook_views_handlers().
  6.  */
  7. function mymodule_history_views_handlers() {
  8.   return array(
  9.     'info' => array(
  10.       'path' => drupal_get_path('module',

history data for recently viewed nodes

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * Implementation of hook_views_handlers().
  6.  */
  7. function mymodule_history_views_handlers() {
  8.   return array(
  9.     'info' => array(
  10.       'path' => drupal_get_path('module',
Syndicate content