You are here

function testext in Brilliant Gallery 6.3

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

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