[php]osc_priv_count_categories()[/php]
Gets the number of categories
Code osc_category_field():
[php]
function osc_priv_count_categories() {
return View::newInstance()->_count(‘categories’);
}
/**
*
* @return int
*/
[/php]