function patterns_io_get_name_from_file in Patterns 7
Same name and namespace in other branches
- 7.2 includes/io/import.inc \patterns_io_get_name_from_file()
2 calls to patterns_io_get_name_from_file()
- drush_patterns_run in ./
patterns.drush.inc - Imports, enables, and runs the specified pattern file
- patterns_io_import_file in includes/
io/ import.inc
File
- includes/
io/ import.inc, line 90 - Importing Patterns from a file or using an URL.
Code
function patterns_io_get_name_from_file($file) {
return pathinfo($file, PATHINFO_BASENAME);
}