Add helper for tree views and use it

This commit is contained in:
Eike Foken
2011-04-21 20:45:38 +02:00
parent 52cd81eace
commit c4c7988b5d
3 changed files with 24 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
<?php defined('BASEPATH') || exit("No direct script access allowed");
if (!function_exists('set_tree_icons')) {
function set_tree_icons(&$value, $key, $icon) {
if (isset($value['text']) && !isset($value['icon'])) {
$value['icon'] = $icon;
}
}
}