Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/book.views.inc
12 12
 */
13 13
function book_views_data() {
14 14
  // ----------------------------------------------------------------------
15
  // book table
16

  
15
  // 'book' table.
17 16
  $data['book']['table']['group']  = t('Book');
18 17
  $data['book']['table']['join'] = array(
19 18
    'node' => array(
......
35 34
  );
36 35

  
37 36
  // ----------------------------------------------------------------------
38
  // menu_links table -- this is aliased so we can get just book relations
39

  
37
  // 'menu_links' table -- this is aliased so we can get just book relations.
40 38
  // Book hierarchy and weight data are now in {menu_links}.
41 39
  $data['book_menu_links']['table']['group'] = t('Book');
42 40
  $data['book_menu_links']['table']['join'] = array(
......
87 85
  );
88 86

  
89 87
  // ----------------------------------------------------------------------
90
  // book_parent table -- this is an alias of the book table which
88
  // 'book_parent' table -- this is an alias of the book table which
91 89
  // represents the parent book.
92

  
93 90
  // The {book} record for the parent node.
94 91
  $data['book_parent']['table']['group'] = t('Book');
95 92
  $data['book_parent']['table']['join'] = array(
......
119 116
 * Implements hook_views_plugins().
120 117
 */
121 118
function book_views_plugins() {
122
 return array(
123
   'module' => 'views',
124
   'argument default' => array(
125
     'book_root' => array(
126
       'title' => t('Book root from current node'),
127
       'handler' => 'views_plugin_argument_default_book_root'
128
     ),
129
   ),
130
 );
119
  return array(
120
    'module' => 'views',
121
    'argument default' => array(
122
      'book_root' => array(
123
        'title' => t('Book root from current node'),
124
        'handler' => 'views_plugin_argument_default_book_root',
125
      ),
126
    ),
127
  );
131 128
}

Formats disponibles : Unified diff