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