diff -u b/omega_tools.module b/omega_tools.module --- b/omega_tools.module +++ b/omega_tools.module @@ -663,10 +663,13 @@ // Tokens for use in omega tools theme arguments. $tokens = array( 'conf_path' => conf_path(), - 'conf_path:dir' => preg_filter('/(sites\/)(.*)/', '$2', conf_path()), - 'conf_path:dir:prefix' => preg_filter('/(sites\/)(.*?)\..*/', '$2', conf_path()), + 'conf_path:dir' => preg_replace('/(sites\/)(.*)/', '$2', conf_path()), + 'conf_path:dir:prefix' => preg_replace('/(sites\/)(.*?)\..*/', '$2', conf_path()), ); + // Allow other modules to alter the tokens. + drupal_alter('omega_tools_profiler_tokens', $tokens); + foreach ($themes as $machine_name => $theme) { foreach ($theme as &$item) { foreach ($tokens as $token => $value) {