You are here

function _cmf_get_forum in Content Management Filter 7

Same name and namespace in other branches
  1. 5 cmf.module \_cmf_get_forum()
  2. 6.2 cmf.module \_cmf_get_forum()
  3. 6 cmf.module \_cmf_get_forum()

Get the term for a forum node

Parameters

node ID:

Return value

the name and forum description

3 calls to _cmf_get_forum()
cmf_admin_both_form in ./both.inc
Defines the form for mixed content administration filter results.
cmf_admin_comments_form in ./comment.inc
Defines the form for comments administration filter results.
cmf_admin_nodes_form in ./node.inc
Defines the form for nodes administration filter results.

File

./cmf.module, line 1067
@brief Content management filter module file

Code

function _cmf_get_forum($nid) {
  $path = array();
  $node = node_load($nid);
  $parents = taxonomy_get_parents_all($node->tid);
  foreach ($parents as $parent) {
    $path[] = $parent->name;
  }
  return implode(' > ', array_reverse($path));
}