You are here

function configuration_set_status in Configuration Management 7

Mark a configuration as default, overridden, etc...

Parameters

$component The name of the component:

$name The name of the configuration.:

$status The status of the configuration:

15 calls to configuration_set_status()
configuration_check_field in includes/configuration.field.inc
configuration_check_filter in includes/configuration.filter.inc
configuration_check_image in includes/configuration.image.inc
configuration_check_menu_custom in includes/configuration.menu.inc
configuration_check_menu_links in includes/configuration.menu.inc

... See full list

File

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

Code

function configuration_set_status($component, $name, $status) {

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