function _geshifilter_managed_external_stylesheet_possible in GeSHi Filter for syntax highlighting 5.2
Same name and namespace in other branches
- 6 geshifilter.module \_geshifilter_managed_external_stylesheet_possible()
- 7 geshifilter.module \_geshifilter_managed_external_stylesheet_possible()
Helper function for checking if an automatically managed style sheet is possible
Return value
boolean indicating if an automatically managed style sheet is possible
2 calls to _geshifilter_managed_external_stylesheet_possible()
- geshifilter_admin_general_settings_validate in ./
geshifilter.admin.inc - Validation function for admin settings
- geshifilter_requirements in ./
geshifilter.module - Implementation of hook_requirements()
File
- ./
geshifilter.module, line 280 - An input filter for syntax highlighting using the GeSHi library.
Code
function _geshifilter_managed_external_stylesheet_possible() {
$directory = file_directory_path();
return is_dir($directory) && is_writable($directory) && variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PUBLIC;
}