You are here

function _queue_ui_array_keys_contain in Queue UI 7.2

1 call to _queue_ui_array_keys_contain()
queue_ui_page_submit in ./queue_ui.pages.inc

File

./queue_ui.pages.inc, line 261
queue_ui.pages.inc

Code

function _queue_ui_array_keys_contain($input, $search_value, $strict = FALSE) {
  $tmpkeys = array();
  $keys = array_keys($input);
  foreach ($keys as $k) {
    if ($strict && strpos($k, $search_value) !== FALSE) {
      $tmpkeys[] = $k;
    }
    elseif (!$strict && stripos($k, $search_value) !== FALSE) {
      $tmpkeys[] = $k;
    }
  }
  return $tmpkeys;
}