You are here

draggableviews_taxonomy.module in DraggableViews 6.3

DraggableViews taxonomy module provides taxonomy support for both order fields and parent fields.

File

modules/draggableviews_taxonomy/draggableviews_taxonomy.module
View source
<?php

/**
 * @file
 * DraggableViews taxonomy module provides taxonomy support for both order fields and parent fields.
 */

/**
 * Display help and module information
 * @param path which path of the site we're displaying help
 * @param arg array that holds the current path as would be returned from arg() function
 * @return help text for the path
 */
function draggableviews_taxonomy_help($path, $arg) {
  $output = '';
  switch ($path) {
    case "admin/help#draggableviews_taxonomy":
      $output = '<p>' . t("Taxonomy support for both order fields and parent fields.") . '</p>';
      $output .= '<p>' . t("Hint: Use Views relations to turn the Taxonomy: Term ID field into a parent field.") . '</p>';
      break;
  }
  return $output;
}

/**
 * Implementing hook_draggableviews_handlers
 */
function draggableviews_taxonomy_draggableviews_handlers() {
  return array(
    'taxonomy' => array(
      'file' => 'draggableviews_handler_taxonomy.inc',
      'title' => t('Taxonomy'),
      'description' => 'Taxonomy handler.',
      'handler' => 'draggableviews_handler_taxonomy',
    ),
  );
}

Functions

Namesort descending Description
draggableviews_taxonomy_draggableviews_handlers Implementing hook_draggableviews_handlers
draggableviews_taxonomy_help Display help and module information