function testext in Brilliant Gallery 6.3
Same name and namespace in other branches
- 5.4 brilliant_gallery.module \testext()
- 5.3 brilliant_gallery.module \testext()
- 6.4 functions.inc \testext()
- 6 brilliant_gallery.module \testext()
3 calls to testext()
File
- ./
functions.inc, line 3
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;
}