function mediafront_get_extension in MediaFront 6.2
Same name and namespace in other branches
- 6 mediafront.module \mediafront_get_extension()
- 7 mediafront.module \mediafront_get_extension()
Gets the extension of a file provided the path of that file.
1 call to mediafront_get_extension()
- mediafront_get_media_file in ./
mediafront.module - Given a Drupal file object, this function returns the media player file object.
File
- ./
mediafront.module, line 631
Code
function mediafront_get_extension($file) {
return drupal_strtolower(drupal_substr($file, strrpos($file, '.') + 1));
}