You are here

function configuration_set_hash in Configuration Management 7

Update the hash of a configuration

Parameters

$component The name of the component:

$name The name of the configuration.:

$hash The hash of the configuration:

3 calls to configuration_set_hash()
configuration_check_menu_custom in includes/configuration.menu.inc
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_update_component_status in ./configuration.module
Updates the status of a component after it was updated.

File

./configuration.module, line 730
Module file for the configuration module, which enables the capture and management of configuration in Drupal.

Code

function configuration_set_hash($component, $name, $hash) {

  // dsm("Set $name to $status");
  // dsm(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
  db_update('config_export')
    ->fields(array(
    'hash' => $hash,
  ))
    ->condition('name', $name)
    ->condition('owner', $component)
    ->execute();
}