Projet

Général

Profil

Révision 76bdcd04

Ajouté par Assos Assos il y a presque 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/print/print_pdf/print_pdf.views.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * PDF Version Views integration
5
 * PDF Version Views integration.
6 6
 *
7 7
 * @ingroup print
8 8
 */
......
25 25
    // 'field' is the foreign key in this table.
26 26
    'left_field' => 'nid',
27 27
    'field' => 'nid',
28
//    'type' => 'INNER',
29 28
  );
30 29
  $data['print_pdf_page_counter']['table']['join']['node'] = array(
31 30
    // 'left_field' is the primary key in the referenced table.
32 31
    // 'field' is the foreign key in this table.
33 32
    'left_field' => 'nid',
34 33
    'field' => 'path',
35
//    'type' => 'INNER',
36 34
    'handler' => 'print_join_page_counter',
37 35
  );
38 36

  
39
  // print_pdf_node_conf fields
37
  // print_pdf_node_conf fields.
40 38
  $data['print_pdf_node_conf']['link'] = array(
41 39
    'title' => t('PDF: Show link'),
42 40
    'help' => t('Whether to show the PDF version link.'),
......
85 83
      'handler' => 'views_handler_sort',
86 84
    ),
87 85
  );
86
  $data['print_pdf_node_conf']['size'] = array(
87
    'title' => t('PDF: Paper size'),
88
    'help' => t('Configured PDF paper size'),
89
    'field' => array(
90
      'handler' => 'views_handler_field',
91
      'click sortable' => TRUE,
92
    ),
93
    'filter' => array(
94
      'handler' => 'views_handler_filter_string',
95
    ),
96
    'sort' => array(
97
      'handler' => 'views_handler_sort',
98
    ),
99
  );
100
  $data['print_pdf_node_conf']['orientation'] = array(
101
    'title' => t('PDF: Page orientation'),
102
    'help' => t('Configured PDF page orientation.'),
103
    'field' => array(
104
      'handler' => 'views_handler_field',
105
      'click sortable' => TRUE,
106
    ),
107
    'filter' => array(
108
      'handler' => 'views_handler_filter_string',
109
    ),
110
    'sort' => array(
111
      'handler' => 'views_handler_sort',
112
    ),
113
  );
88 114

  
89

  
90
  // print_pdf_page_counter fields
115
  // print_pdf_page_counter fields.
91 116
  $data['print_pdf_page_counter']['totalcount'] = array(
92 117
    'title' => t('PDF: Number of page accesses'),
93 118
    'help' => t('Counter of accesses to the PDF version for this node.'),

Formats disponibles : Unified diff