function kaltura_search in Kaltura 6
Same name and namespace in other branches
- 5 kaltura.module \kaltura_search()
- 6.2 kaltura.module \kaltura_search()
File
- ./
kaltura.module, line 174 - kaltura integration module - core functions
Code
function kaltura_search($op, $keys = NULL) {
switch ($op) {
case 'search':
$query = kaltura_build_search();
$results = db_query($query, $keys);
while ($result = db_fetch_object($results)) {
$kaltura_results[] = array(
'link' => l($result->nid, 'node/' . $result->nid),
'title' => $result->nid,
);
}
return $kaltura_results;
break;
default:
}
}