You are here

function configuration_hash_node in Configuration Management 7

File

includes/configuration.node.inc, line 237

Code

function configuration_hash_node($identifier) {

  // Export just the field we're tracking.
  module_load_include('inc', 'configuration', 'configuration.export');
  $data = node_configuration_export_options();

  // Export the field we just saved and evaluate the export to hash
  $code = node_configuration_export_render('configuration', array(
    $identifier,
  ));
  eval(array_pop($code));
  return md5(serialize($items[$identifier]));
}