Add helper for tree views and use it
This commit is contained in:
9
application/helpers/tree_helper.php
Normal file
9
application/helpers/tree_helper.php
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user