You are here

function tvi_include in Taxonomy Views Integrator 6

Same name and namespace in other branches
  1. 7 tvi.module \tvi_include()

Includes various application logic into the module or in other module include files.

Note, that you only have to specify the name of the include.

tvi_include('admin') : includes -> [ includes/tvi.admin.inc ]

5 calls to tvi_include()
tvi_form_alter in ./tvi.module
Implements hook_form_alter().
tvi_get_term_info in ./tvi.module
Returns different data sets with the term, view, and settings information for a specified term id.
tvi_taxonomy in ./tvi.module
Implements hook_taxonomy().
tvi_term_form in includes/tvi.admin.inc
Adds TVI administration form to the term edit page
tvi_vocab_form in includes/tvi.admin.inc
Adds TVI administration form to the vocabulary edit page

File

./tvi.module, line 458
Enables use of views for taxonomy pages.

Code

function tvi_include() {
  static $loaded = array();
  $args = func_get_args();
  $path = './' . drupal_get_path('module', 'tvi') . '/includes';
  foreach ($args as $name) {
    if (!$loaded[$name]) {
      $file = "tvi.{$name}";
      require_once "{$path}/{$file}.inc";
      $loaded[$name] = TRUE;
    }
  }
}