You are here

function patterns_io_get_name_from_file in Patterns 7.2

Same name and namespace in other branches
  1. 7 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);
}