Index: docroot/sites/all/modules/modified/ctools/includes/export.inc IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- docroot/sites/all/modules/modified/ctools/includes/export.inc (date 1446548427000) +++ docroot/sites/all/modules/modified/ctools/includes/export.inc (revision ) @@ -901,8 +901,9 @@ $output = $indent . '$' . $identifier . ' = new ' . get_class($object) . "();\n"; - if ($schema['export']['can disable']) { - $output .= $indent . '$' . $identifier . '->disabled = FALSE; /* Edit this to true to make a default ' . $identifier . ' disabled initially */' . "\n"; + if ($schema['export']['can disable'] && isset($object->disabled)) { + $disabled = ($object->disabled) ? 'TRUE' : 'FALSE'; + $output .= $indent . '$' . $identifier . '->disabled = ' . $disabled . ";\n"; } if (!empty($schema['export']['api']['current_version'])) { $output .= $indent . '$' . $identifier . '->api_version = ' . $schema['export']['api']['current_version'] . ";\n";