function flickr_excludestrings in Flickr 7
Callback function of array_filter(). Returns TRUE if a value is found in an array within a multidimensional array. Note we use a closure to pass some variables. See http://stackoverflow.com/a/2529784/523688.
Parameters
array $photo: A single passed element of $photos.
array $excludestrings: The array to match, to return false if true.
Return value
bool FALSE if a match found.
1 call to flickr_excludestrings()
- flickr_album in ./
flickr.inc - Render multiple photos as an album.
File
- ./
flickr.inc, line 1676 - The Flickr API functions.
Code
function flickr_excludestrings($photo, $excludestrings) {
foreach ($excludestrings as $excludestring) {
if (stripos($photo['tags'], $excludestring) !== FALSE) {
return FALSE;
}
}
return TRUE;
}