Common Functionality - Settings in Common Functionality 7.2
Provides dynamic management for php ini settings.
Justification: Modules may depend on php ini settings or even provide their own global settings that must be defined in drupals settings.php. While defining these settings inside of the /sites/default/settings.php file is the more efficient way to go, this is not a good idea for systems that need these settings to be dynamic.
Some modules, such as the insert module, even define their own custom settings that must go inside of the /sites/default/settings.php file, but end-users have no obvious way of knowing about and managing these settings.
For those modules that do define their own custom settings.php variables, there also exists the possibility of naming conflicts.
This module defines a toolkit that helps manage and communicate these php settings and custom variables.
References:
Parent topics
File
- modules/
cf_settings/ cf_settings.module, line 8 - Common Functionality - PHP INI module.
Functions
Name | Location | Description |
---|---|---|
cf_settings_administer_variables |
modules/ |
Display the system variables registry. |
cf_settings_boot |
modules/ |
Implements hook_boot(). |
cf_settings_cf_permission_alter |
modules/ |
Implements hook_cf_permission_alter(). |
cf_settings_get_registered |
modules/ |
Obtains the registered variables based on the given conditions. |
cf_settings_get_variable_types |
modules/ |
Get an array of supported variable type options. |
cf_settings_get_variable_types_list |
modules/ |
Get an array of supported variable type options list. |
cf_settings_is_registered |
modules/ |
Determine if a variable is registered or not. |
cf_settings_menu |
modules/ |
Implements hook_menu(). |
cf_settings_modules_uninstalled |
modules/ |
Implements hook_modules_uninstalled(). |
cf_settings_register |
modules/ |
Add a variable name and type to the variables registry. |
cf_settings_theme |
modules/ |
Implements hook_theme(). |
cf_settings_unregister |
modules/ |
Remove a registered variable from the variables registry. |