/**
  * Check a config value if its enabled
  * Anything except '' and 0 is true
  *
  * @param	array 		$config Configuration array
  * @param	string 		$option Option key. If not set in $config default value will be returned
  * @param	mixed 		$default Default value when option is not set, otherwise the value itself
  * @return boolean
  */
 function config_isEnabledOption($config, $option, $default = false)
 {
     require_once PATH_txdam . 'lib/class.tx_dam_config.php';
     return tx_dam_config::isEnabledOption($config, $option, $default);
 }
 /**
  * Check a config value if its enabled
  * Anything except '' and 0 is true
  * If the the option is not set the default value will be returned
  *
  * @param	string		$configPath Pointer to an "object" in the TypoScript array, fx. 'setup.selections.default'
  * @param	mixed 		$default Default value when option is not set, otherwise the value itself
  * @return boolean
  */
 function checkValueEnabled($configPath, $default = false)
 {
     $parts = t3lib_div::revExplode('.', $configPath, 2);
     $config = tx_dam_config::getValue($parts[0], true);
     return tx_dam_config::isEnabledOption($config, $parts[1], $default);
 }