libraries/MVC/BView.php
public function breadcrumbs_add_region($id) {
		bimport('regions.general');
		$bregions = BRegions::getInstance();
		$regions = $bregions->regions_get_all();
		$reg = $bregions->region_get($id);
		if (empty($reg)) {
			return false;
		}
		$brouter = BRouter::getInstance();
		$url = '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'region', 'id' => $id));
		$children = array();
		foreach ($regions as $r) {
			$children[$r->id] = (object)array('active' => true, 'url' => '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'region', 'id' => $r->id)), 'name' => $r->getname());
		}
		$name = $reg->getname();
		return $this->breadcrumbs_add($url, $name, true, 'region', $children);
	}
public function breadcrumbs_add_region($id) {
		bimport('regions.general');
		$bregions = BRegions::getInstance();
		$regions = $bregions->regions_get_all();
		$reg = $bregions->region_get($id);
		if (empty($reg)) {
			return false;
		}
		$brouter = BRouter::getInstance();
		$url = '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'region', 'id' => $id));
		$children = array();
		foreach ($regions as $r) {
			$children[$r->id] = (object)array('active' => true, 'url' => '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'region', 'id' => $r->id)), 'name' => $r->getname());
		}
		$name = $reg->getname();
		return $this->breadcrumbs_add($url, $name, true, 'region', $children);
	}
public function breadcrumbs_add_region ( $ id ) { bimport ( 'regions.general' ) ; $ bregions = BRegions :: getInstance ( ) ; $ regions = $ bregions -> regions_get_all ( ) ; $ reg = $ bregions -> region_get ( $ id ) ; if ( empty ( $ reg ) ) { return false ; } $ brouter = BRouter :: getInstance ( ) ; $ url = '//' . $ brouter -> generateURL ( 'regions' , BLang :: $ langcode , array ( 'view' => 'region' , 'id' => $ id ) ) ; $ children = array ( ) ; foreach ( $ regions as $ r ) { $ children [ $ r -> id ] = ( object ) array ( 'active' => true , 'url' => '//' . $ brouter -> generateURL ( 'regions' , BLang :: $ langcode , array ( 'view' => 'region' , 'id' => $ r -> id ) ) , 'name' => $ r -> getname ( ) ) ; } $ name = $ reg -> getname ( ) ; return $ this -> breadcrumbs_add ( $ url , $ name , true , 'region' , $ children ) ; }
Add region breadcrumbs element

@param $id
@return bool
Add region breadcrumbs element