35) { $name = substr($name, 0, 35) . "..."; } $entity_type = $config['entities'][$result['entity_type']]; /// FIXME: always blue $tab_colour = '#194B7F'; // FIXME: This colour pulled from functions.inc.php humanize_device, maybe set it centrally in definitions? $group_search_results[] = array('url' => generate_url(array('page' => 'group', 'group_id' => $result['group_id'])), 'name' => $name, 'colour' => $tab_colour, 'icon' => $entity_type['icon'], 'data' => array('', escape_html($result['group_descr']) . ' | '.nicecase($result['entity_type']).' Group'),); } $search_results['groups'] = array('descr' => 'Groups found', 'results' => $group_search_results); }