function countries_configuration_options in Countries 8
Same name and namespace in other branches
- 7.2 modules/countries_configuration/countries_configuration.module \countries_configuration_options()
Wrapper to collect information from hook_countries_configuration_options().
Loads information about modules that rely on the countries module to store country specific data.
4 calls to countries_configuration_options()
- countries_configuration in modules/
countries_configuration/ countries_configuration.module - Helper function to load country configuration options.
- countries_configuration_menu in modules/
countries_configuration/ countries_configuration.module - Implements hook_menu().
- countries_configuration_options_form in modules/
countries_configuration/ countries_configuration.admin.inc - Menu callback for generating a countries settings admin form.
- countries_load_configuration_options in modules/
countries_configuration/ countries_configuration.module - Depreciated. Use countries_configuration() instead.
File
- modules/
countries_configuration/ countries_configuration.module, line 41 - Provides the base framework for integration for storing country specific data on behalf of other modules.
Code
function countries_configuration_options() {
$configuration_options = array();
foreach (module_implements('countries_configuration_options') as $module) {
$func = $module . '_countries_configuration_options';
foreach ($func() as $name => $info) {
$configuration_options[$name] = $info;
$configuration_options[$name]['module'] = $module;
}
}
return $configuration_options;
}