You are here

function _geshifilter_managed_external_stylesheet_possible in GeSHi Filter for syntax highlighting 6

Same name and namespace in other branches
  1. 5.2 geshifilter.module \_geshifilter_managed_external_stylesheet_possible()
  2. 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
Validate function for admin settings
geshifilter_requirements in ./geshifilter.module
Implementation of hook_requirements().

File

./geshifilter.module, line 267
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;
}