You are here

function kaltura_update_mix_tags_from_taxonomy in Kaltura 6.2

Same name and namespace in other branches
  1. 5 plugins/node_kaltura_mix/node_kaltura_mix.module \kaltura_update_mix_tags_from_taxonomy()
  2. 6 plugins/node_kaltura_mix/node_kaltura_mix.module \kaltura_update_mix_tags_from_taxonomy()

helper function that takes the node's taxonomy tags and pushes them into the kaltura tags fields

1 call to kaltura_update_mix_tags_from_taxonomy()
node_kaltura_mix_update in plugins/node_kaltura_mix/node_kaltura_mix.module
Implementation of hook_update().

File

plugins/node_kaltura_mix/node_kaltura_mix.module, line 849

Code

function kaltura_update_mix_tags_from_taxonomy(&$node) {
  $voc = variable_get('kaltura_mix_tags_voc', '');

  //echo $voc;
  if ($voc != '') {
    $tags = $node->taxonomy['tags'][$voc];

    //    $node->kaltura_tags .= " " . $tags;
    $node->kaltura_tags = $tags;
  }
  $voc = variable_get('kaltura_mix_admin_tags_voc', '');
  if ($voc != '') {
    $tags = $node->taxonomy['tags'][$voc];
    $node->kaltura_admin_tags = $tags;
  }
}