35) { $name = substr($name, 0, 35) . "..."; } /// FIXME: once we have alerting, colour this to the sensor's status $tab_colour = '#194B7F'; // FIXME: This colour pulled from functions.inc.php humanize_device, maybe set it centrally in definitions? $ap_search_results[] = array( 'url' => generate_url(array('page' => 'device', 'device' => $result['device_id'], 'tab' => 'wifi', 'view' => 'accesspoints', 'accesspoint' => $result['wifi_ap_id'])), 'name' => $name, 'colour' => $tab_colour, 'icon' => $config['icon']['wifi'], 'data' => array( $result['ap_name'], escape_html($result['ap_location']) . ' | Access point'), ); } $search_results['accesspoints'] = array('descr' => 'APs found', 'results' => $ap_search_results); } // EOF