function coder_upgrade_path in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/coder_upgrade.inc \coder_upgrade_path()
Returns path to file or files directory.
Parameters
string $type: Type of file to return path to. If blank, return directory path.
Return value
string Path to file or directory.
10 calls to coder_upgrade_path()
- coder_upgrade_conversions_form_submit in coder_upgrade/
includes/ conversion.inc - Submit handler for the module conversion form.
- coder_upgrade_create_theme_cache_submit in coder_upgrade/
includes/ settings.inc - Submit callback; creates a core theme information cache file.
- coder_upgrade_debug_print in coder_upgrade/
includes/ main.inc - Prints debug information if debug flag is on.
- coder_upgrade_general_build in coder_upgrade/
includes/ settings.inc - Returns form content for general settings tab.
- coder_upgrade_log_print in coder_upgrade/
includes/ main.inc - Prints log information if log flag is on.
File
- coder_upgrade/
coder_upgrade.inc, line 137 - Provides constants and utility functions.
Code
function coder_upgrade_path($type = '') {
static $path = '';
if (!$path) {
$path = coder_upgrade_directory_path('base', FALSE);
}
return $type ? $path . '/' . $type . '.txt' : $path;
}