From: hickert Date: Wed, 10 Jan 2007 04:10:43 +0000 (+0000) Subject: Added description to macro list X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bfe3bb696c37581a71c65c64b1e63d50e54dd46f;p=gosa.git Added description to macro list git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5495 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/macro/class_divListMacros.inc b/plugins/gofon/macro/class_divListMacros.inc index 3d14404e1..99c40678f 100755 --- a/plugins/gofon/macro/class_divListMacros.inc +++ b/plugins/gofon/macro/class_divListMacros.inc @@ -104,6 +104,16 @@ class divListMacro extends MultiSelectWindow foreach($list as $key => $val){ $display= $val["displayName"][0]; + if(isset($val['description'][0])){ + + $desc = $val['description'][0]; + if(strlen($desc) > 55){ + $desc = substr($desc,0,52)."..."; + } + + $display .= " [".$desc."]"; + } + if(isset($val['goFonMacroVisible']['0'])&&($val['goFonMacroVisible']['0'] == "1")){ $pic1 = $visible; }else{