function configuration_add_status in Configuration Management 7
Add a configuration as datastore only
Parameters
$component The component of the configuration.:
$name The unique name of the configuration.:
2 calls to configuration_add_status()
- configuration_check_user_role in includes/
configuration.user.inc - User roles are unique in that the name of the config and the name of the role are the same. If you change the name of the role, you are effectively creating a new configuration item. For that reason, we have to check to see what roles are no longer…
- configuration_find_new in ./
configuration.module - Look for any configurations that might be new
File
- ./
configuration.module, line 692 - Module file for the configuration module, which enables the capture and management of configuration in Drupal.
Code
function configuration_add_status($component, $name, $hash) {
$current_config = configuration_get_configuration();
$record = array(
'name' => $name,
'owner' => $component,
'status' => CONFIGURATION_DATASTORE_ONLY,
'hash' => $hash,
);
drupal_write_record('config_export', $record);
cache_clear_all('config_export', 'cache');
}