It would be nice if global tokens (such as [site:name], [current-date], etc) become replaced by Rewrite plugin.
Also we need a token tree on rewrite plugin config form to inform which tokens are available to replace.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

PatchRanger’s picture

Status: Active » Needs review
FileSize
679 bytes

Here you are a patch.
Please review.

JGReidy’s picture

I was not able to get this patch to download/install with drush make:
projects[feeds_tamper][version] = "1.0-beta4"
projects[feeds_tamper][patch][] = "http://drupal.org/files/added_global_tokens_support-1744032-1.patch"
nor
projects[feeds_tamper][version] = "1.0-beta4"
projects[feeds_tamper][patch][] = "https://drupal.org/files/added_global_tokens_support-1744032-1.patch"

Did I get the drush make syntax wrong?

JGReidy’s picture

duh - NOW I see the patch if for Drupal 7 . Sorry.

Status: Needs review » Needs work

The last submitted patch, added_global_tokens_support-1744032-1.patch, failed testing.

HeathN’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, added_global_tokens_support-1744032-1.patch, failed testing.

HeathN’s picture

Status: Needs work » Needs review

I applied this patch on my local dev and it succeeded.

patch -p1 < added_global_tokens_support-1744032-1.patch
patching file plugins/rewrite.inc
Hunk #1 succeeded at 32 with fuzz 2 (offset -11 lines).
Hunk #2 succeeded at 45 (offset -11 lines).
michel.settembrino’s picture

I would like to have global tokens support into the plugin "Set default value".

twistor’s picture

Component: Code » Plugins
Issue summary: View changes
Status: Needs review » Needs work

Does not apply.