mediafront_tagging.module in MediaFront 6
Same filename and directory in other branches
File
plugins/mediafront_tagging/mediafront_tagging.moduleView 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
Name | Description |
---|---|
mediafront_tagging_playlist_node | Implementation of hook_playlist_node |