function ctools_configuration_check in Configuration Management 7        
                          
                  
                        
File
 
   - includes/configuration.ctools.inc, line 361
Code
function ctools_configuration_check($identifier) {
  
  $from_activestore =& drupal_static('configuration_from_activestore');
  
  $backtrace = @debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
  $component = substr($backtrace[1]['function'], strlen('configuration_check_'));
  
  $info = _ctools_configuration_get_info();
  if (file_exists('config://configuration.' . $component . '.inc')) {
    
    if ($component == 'page_manager_pages') {
      ctools_include('page', 'page_manager', 'plugins/tasks');
      $export =& $pages;
    }
    include_once drupal_realpath('config://configuration.' . $component . '.inc');
    
    module_load_include('inc', 'configuration', 'configuration.export');
    $data = ctools_component_configuration_export_options($component);
    
    $code = ctools_component_configuration_export_render($component, 'configuration', array(
      $identifier,
    ));
    eval(array_pop($code));
    $export_code = call_user_func('configuration_' . $info[$component]['default_hook']);
    
    $config = configuration_get_configuration();
    
    if (empty($export)) {
      configuration_set_status($component, $identifier, CONFIGURATION_TRACKED_DATASTORE_ONLY);
    }
    
    if ($component == 'views_view') {
      foreach ($export as &$view) {
        if (property_exists($view, 'localization_plugin')) {
          unset($view->localization_plugin);
        }
      }
    }
    configuration_update_component_status($component, $identifier, $export, $export_code, $from_activestore);
  }
}