Implements hook_config_import_create().
function config_test_config_import_create($name, $new_config, $old_config) {
if (strpos($name, 'config_test.dynamic.') !== 0) {
return FALSE;
}
// Set a global value we can check in test code.
$GLOBALS['hook_config_import'] = __FUNCTION__;
$config_test = entity_create('config_test', $new_config
->get());
$config_test
->save();
return TRUE;
}