You are here

mediafront_tagging.module in MediaFront 6

Same filename and directory in other branches
  1. 6.2 plugins/mediafront_tagging/mediafront_tagging.module

File

plugins/mediafront_tagging/mediafront_tagging.module
View source
<?php

/**
 * Implementation of hook_playlist_node
 */
function mediafront_tagging_playlist_node($node, $args) {
  $additions = array();
  $sql = "SELECT v.vid FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} vt ON v.vid=vt.vid WHERE vt.type='%s' AND v.tags=1";
  $tagging_vid = db_result(db_query($sql, $node->type));
  if ($tagging_vid) {
    $additions["tagging_vid"] = $tagging_vid;
  }
  return $additions;
}

Functions

Namesort descending Description
mediafront_tagging_playlist_node Implementation of hook_playlist_node