function patterns_file_types in Patterns 6.2
Same name and namespace in other branches
- 6 patterns.module \patterns_file_types()
Return file extensions supported by patterns module
@todo convert this into pluggable system
Return value
array of supported file types
3 calls to patterns_file_types()
- patterns_edit in ./
patterns.module - Menu callback to edit a patterns data
- patterns_get_patterns in ./
patterns.module - patterns_import_server in ./
patterns.module - Display the import pattern from server form
File
- ./
patterns.module, line 1117 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_file_types() {
$result = array(
'xml',
'php',
);
if (file_exists(drupal_get_path('module', 'patterns') . '/spyc/spyc.php')) {
$result[] = 'yaml';
}
return $result;
}