You are here

class _forum_CrumbsPlugin__term_name in Crumbs, the Breadcrumbs suite 6

Same name and namespace in other branches
  1. 6.2 plugins/crumbs.forum.inc \_forum_CrumbsPlugin__term_name

Hierarchy

Expanded class hierarchy of _forum_CrumbsPlugin__term_name

File

plugins/crumbs.forum.inc, line 66

View source
class _forum_CrumbsPlugin__term_name {
  function findTitle__forum($path, $item) {
    if (preg_match('#^forum/(\\d+)$#', $path, $m)) {
      list(, $tid) = $m;
      $q = db_query($sql = "SELECT name FROM {term_data} WHERE tid = %d", $tid);
      if ($row = db_fetch_object($q)) {
        return $row->name;
      }
    }
  }

}

Members