| 1 |
<?php |
<?php |
|
/** |
|
|
* @author Ryan Hughes <ryan@linuxbox.com> |
|
|
*/ |
|
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* Implementation of hook_views_tables. |
* Implementation of hook_views_tables. |
| 5 |
* Declares information that this module provides for views integration. In |
* Declares information that this module provides for views integration. In |
| 6 |
* our case, that means defining the filter. |
* our case, that means defining the filter. |
| 7 |
*/ |
*/ |
| 8 |
function relatedviews_views_tables() { |
function relatedviews_views_tables_alter(&$tables) { |
| 9 |
if (module_exists('taxonomy')) { |
if (module_exists('taxonomy')) { |
| 10 |
$vocab_options = array(); |
$vocab_options = array(); |
| 11 |
foreach (taxonomy_get_vocabularies() as $vocab) { |
foreach (taxonomy_get_vocabularies() as $vocab) { |