public static function read_device_notes($device) { $devices = phodevi::available_hardware_devices(); if ($device != null && isset($devices[$device])) { $notes_r = call_user_func(array('phodevi_' . $devices[$device], 'device_notes')); } else { $notes_r = array(); } return is_array($notes_r) ? $notes_r : array(); }