function mediafront_get_extension in MediaFront 6
Same name and namespace in other branches
- 6.2 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 696
Code
function mediafront_get_extension($file) {
return drupal_strtolower(drupal_substr($file, strrpos($file, '.') + 1));
}