function testext in Brilliant Gallery 5.4
Same name and namespace in other branches
- 5.3 brilliant_gallery.module \testext()
- 6.4 functions.inc \testext()
- 6 brilliant_gallery.module \testext()
- 6.3 functions.inc \testext()
3 calls to testext()
File
- ./
brilliant_gallery.module, line 882
Code
function testext($filename) {
if (substr(strtolower($filename), -4, 4) == ".jpg" or substr(strtolower($filename), -5, 5) == ".jpeg" or substr(strtolower($filename), -4, 4) == ".gif" or substr(strtolower($filename), -4, 4) == ".png") {
return true;
}
# Otherwise return false.
return false;
}