You are here

function testext in Brilliant Gallery 5.4

Same name and namespace in other branches
  1. 5.3 brilliant_gallery.module \testext()
  2. 6.4 functions.inc \testext()
  3. 6 brilliant_gallery.module \testext()
  4. 6.3 functions.inc \testext()
3 calls to testext()
load_dir_to_array in ./brilliant_gallery.module
render_brilliant_gallery in ./brilliant_gallery.module
render_brilliant_gallery_manage in ./brilliant_gallery.module

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;
}