function breadcrumb_arrays($index, $id)
{
$crumb =& $crumb;
if (isset($index[get_parent($index, $id)])) {
$_name = dbarray(dbquery("SELECT news_cat_id, news_cat_name, news_cat_parent FROM " . DB_NEWS_CATS . " WHERE news_cat_id='" . $id . "'"));
$crumb = array('link' => INFUSIONS . "news/news.php?cat_id=" . $_name['news_cat_id'], 'title' => $_name['news_cat_name']);
if (isset($index[get_parent($index, $id)])) {
if (get_parent($index, $id) == 0) {
return $crumb;
}
$crumb_1 = breadcrumb_arrays($index, get_parent($index, $id));
$crumb = array_merge_recursive($crumb, $crumb_1);
// convert so can comply to Fusion Tab API.
}
}
return $crumb;
}