You are here

function _features_linetrim in Features 7

Same name and namespace in other branches
  1. 6 features.export.inc \_features_linetrim()
  2. 7.2 features.export.inc \_features_linetrim()

Helper function to eliminate whitespace differences in code.

2 calls to _features_linetrim()
features_detect_overrides in ./features.export.inc
Detect differences between DB and code components of a feature.
features_get_signature in ./features.export.inc
Wrapper around features_get_[storage] to return an md5hash of a normalized defaults/normal object array. Can be used to compare normal/default states of a module's component.

File

./features.export.inc, line 850

Code

function _features_linetrim($code) {
  $code = explode("\n", $code);
  foreach ($code as $k => $line) {
    $code[$k] = trim($line);
  }
  return implode("\n", $code);
}