You are here

function themekey_features_get_rule_cascade_string in ThemeKey 7.3

Same name and namespace in other branches
  1. 7.2 themekey_features.module \themekey_features_get_rule_cascade_string()
2 calls to themekey_features_get_rule_cascade_string()
themekey_features_rule_chain_features_export_options in ./themekey_features.module
Implements hook_features_export_options().
themekey_features_rule_chain_features_export_render in ./themekey_features.module
Implements hook_features_export_render().

File

./themekey_features.module, line 251

Code

function themekey_features_get_rule_cascade_string($rule) {
  $string = trim($rule['string'], '"');
  if (!empty($rule['childs'])) {
    return preg_replace('/>>>.+$/', '>>> ... ' . t('rule cascade'), $string);
  }
  return $string;
}