| 1 |
<?php |
<?php |
| 2 |
// $Id: procon_views.inc,v 1.1.2.1 2007/07/26 20:12:45 fajerstarter Exp $ |
// $Id: procon_views.inc,v 1.1.2.2 2007/08/07 06:54:03 fajerstarter Exp $ |
| 3 |
|
|
| 4 |
function procon_views_tables() { |
function procon_views_tables() { |
| 5 |
$tables['procon'] = array( |
$tables['procon'] = array( |
| 131 |
} |
} |
| 132 |
|
|
| 133 |
/** |
/** |
| 134 |
* Theme the arguments view provided by this module. |
* Theme the arguments view. |
| 135 |
*/ |
*/ |
| 136 |
function theme_views_view_nodes_procon_arguments($view, $nodes, $type, $teasers = false, $links = true) { |
function theme_views_view_nodes_procon_arguments($view, $nodes, $type, $teasers = false, $links = true) { |
| 137 |
$first_match = true; |
$first_match = true; |
| 138 |
|
// Enables collapsible comments. |
| 139 |
|
drupal_add_js(drupal_get_path('module', 'procon') .'/procon.js'); |
| 140 |
|
drupal_add_js(array('procon' => array('show' => t('Show all'), 'hide' => t('Hide all'))), 'setting'); |
| 141 |
|
|
| 142 |
$output .= '<div id="procon" class="clear-block">'; // Div wrapper to clear floats |
$output .= '<div id="procon" class="clear-block">'; // Div wrapper to clear floats |
| 143 |
foreach ($nodes as $n) { |
foreach ($nodes as $n) { |