function pager_entries_by_val in Custom Pagers 6
Same name and namespace in other branches
- 5 custom_pagers.module \pager_entries_by_val()
- 7 custom_pagers.module \pager_entries_by_val()
1 call to pager_entries_by_val()
File
- ./
custom_pagers.module, line 216 - Allows administrators to define context-sensitive previous/next pagers for any node type.
Code
function pager_entries_by_val($value, $list) {
$list = array_values($list);
foreach ($list as $k => $v) {
if ($v == $value) {
$key = $k;
}
}
if (!isset($key)) {
$key = -1;
}
return pager_entries_by_key($key, $list);
}