function bynder_search_string in Bynder 7
Return entered search string.
1 call to bynder_search_string()
- bynder_generate_search in includes/
bynder.browser.inc - Generate search page.
File
- includes/
bynder.browser.inc, line 344 - Manages the Bynder media browser functionality
Code
function bynder_search_string($state) {
$search = null;
if (isset($state['values']['field'])) {
$search = $state['values']['field'];
}
elseif (isset($_GET['search'])) {
$search = check_plain(filter_xss($_GET['search']));
}
return $search;
}