Revision 76bdcd04
Added by Assos Assos almost 6 years ago
drupal7/sites/all/modules/print/print.views.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Printer-friendly version Views integration |
|
5 |
* Printer-friendly version Views integration.
|
|
6 | 6 |
* |
7 | 7 |
* @ingroup print |
8 | 8 |
*/ |
9 | 9 |
|
10 |
|
|
11 | 10 |
/** |
12 | 11 |
* Implements hook_views_data(). |
13 | 12 |
*/ |
... | ... | |
26 | 25 |
// 'field' is the foreign key in this table. |
27 | 26 |
'left_field' => 'nid', |
28 | 27 |
'field' => 'nid', |
29 |
// 'type' => 'INNER', |
|
30 | 28 |
); |
31 | 29 |
$data['print_page_counter']['table']['join']['node'] = array( |
32 | 30 |
// 'left_field' is the primary key in the referenced table. |
33 | 31 |
// 'field' is the foreign key in this table. |
34 | 32 |
'left_field' => 'nid', |
35 | 33 |
'field' => 'path', |
36 |
// 'type' => 'INNER', |
|
37 | 34 |
'handler' => 'print_join_page_counter', |
38 | 35 |
); |
39 | 36 |
|
40 |
// print_node_conf fields |
|
37 |
// print_node_conf fields.
|
|
41 | 38 |
$data['print_node_conf']['link'] = array( |
42 | 39 |
'title' => t('Web: Show link'), |
43 | 40 |
'help' => t('Whether to show the printer-friendly version link.'), |
... | ... | |
87 | 84 |
), |
88 | 85 |
); |
89 | 86 |
|
90 |
|
|
91 |
// print_page_counter fields |
|
87 |
// print_page_counter fields. |
|
92 | 88 |
$data['print_page_counter']['totalcount'] = array( |
93 | 89 |
'title' => t('Web: Number of page accesses'), |
94 | 90 |
'help' => t('Counter of accesses to the printer-friendly version for this node.'), |
Also available in: Unified diff
Weekly update of contrib modules