/[drupal]/contributions/modules/token/token.module
ViewVC logotype

Log of /contributions/modules/token/token.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.5.2.18 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 28 15:36:04 2009 UTC (8 weeks, 2 days ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.17: +23 -5 lines
Diff to previous 1.5.2.17 , to branch point 1.5 , to next main 1.16
bug #262360 by Justin W Freeman, derhasi, MGN: Expose control of token caching to functions that call token_replace

Revision 1.7.4.13 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 28 15:34:59 2009 UTC (8 weeks, 2 days ago) by greggles
Branch: DRUPAL-6--1
Changes since 1.7.4.12: +23 -5 lines
Diff to previous 1.7.4.12 , to branch point 1.7 , to next main 1.16
bug #262360 by Justin W Freeman, derhasi, MGN: Expose control of token caching to functions that call token_replace

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 21 14:20:25 2009 UTC (4 months ago) by eaton
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +64 -45 lines
Diff to previous 1.15
Resyncing token code with #113614, and adding token.test to the module project.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jul 12 04:43:23 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.14: +50 -30 lines
Diff to previous 1.14
Code style fixes, comment updates, and polish work from sun's code review.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 11 22:51:34 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.13: +10 -4 lines
Diff to previous 1.13
Well, that was scary. Realized we needed to support localization tweaks for tokens. Not full translation, but the ability to pass in a language object and have it relayed when formatting dates, sending URLs, and so on. Also, ensure that delegated/chained tokens inherit the proper  flag.

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 11 20:47:34 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.12: +7 -7 lines
Diff to previous 1.12
Adding better PHPDoc snippets for files and hook implementations, whitespace and coding standards tweaks, etc.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 11 18:33:46 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.11: +38 -18 lines
Diff to previous 1.11
Migrating changes from #113614 - numerous minor token fixes, coding standards tweaks, and more. Also added token.dev.inc, which provides a simple testbed for token replacement at admin/settings/token. Updated token_actions for HEAD as well.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 10 15:56:01 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.10: +2 -3 lines
Diff to previous 1.10
Whoops. Missed an 'if' in token_match_prefix that caused lots of false positives when chaining.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 8 02:35:56 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.9: +33 -1 lines
Diff to previous 1.9
Adding hook_token_info() and hook_token_info_alter(). Implemented the hook for comments as an example, still need to flesh out other modules.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 7 16:16:10 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: MAIN
Changes since 1.8: +26 -0 lines
Diff to previous 1.8
Adding a new helper function that greatly simplifies the process of 'delegating' a set of tokens to another token type (mapping node:author to the 'user' token type, for example). Updated the existing token hook implementations to match the new approach, and simplified the case logic in most of them, as well.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 2 19:49:13 2009 UTC (4 months, 3 weeks ago) by eaton
Branch: MAIN
Changes since 1.7: +77 -104 lines
Diff to previous 1.7
Early test commit of Token 2.x. This version runs on D7. Also, it is very broken. Do you like pain? If so, run this.

Revision 1.5.2.17 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 1 16:16:17 2009 UTC (5 months, 3 weeks ago) by greggles
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-12, DRUPAL-5--1-13
Changes since 1.5.2.16: +3 -2 lines
Diff to previous 1.5.2.16 , to branch point 1.5
bug #224262 by Razorraser: prevent notices (followup to Add Page Number token)

Revision 1.7.4.12 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 1 16:15:32 2009 UTC (5 months, 3 weeks ago) by greggles
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-12
Changes since 1.7.4.11: +3 -2 lines
Diff to previous 1.7.4.11 , to branch point 1.7
bug #224262 by Razorraser: prevent notices (followup to Add Page Number token)

Revision 1.7.4.11 - (view) (download) (as text) (annotate) - [select for diffs]
Sat May 30 20:35:24 2009 UTC (5 months, 3 weeks ago) by greggles
Branch: DRUPAL-6--1
Changes since 1.7.4.10: +19 -14 lines
Diff to previous 1.7.4.10 , to branch point 1.7
feature #127072 by smk-ka, MGN: Display token_help for more than one type

Revision 1.5.2.16 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 28 00:02:30 2009 UTC (6 months ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.15: +4 -1 lines
Diff to previous 1.5.2.15 , to branch point 1.5
feature #224262 by nicholasThompson: Add Page Number token

Revision 1.7.4.10 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 28 00:02:02 2009 UTC (6 months ago) by greggles
Branch: DRUPAL-6--1
Changes since 1.7.4.9: +4 -1 lines
Diff to previous 1.7.4.9 , to branch point 1.7
feature #224262 by nicholasThompson: Add Page Number token

Revision 1.5.2.15 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 10 17:39:52 2009 UTC (7 months, 2 weeks ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.14: +29 -2 lines
Diff to previous 1.5.2.14 , to branch point 1.5
#236596 by emok and brunodbo: Add useful date parts in the global namespace.

Revision 1.7.4.9 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 29 15:21:40 2008 UTC (14 months, 4 weeks ago) by eaton
Branch: DRUPAL-6--1
Changes since 1.7.4.8: +29 -2 lines
Diff to previous 1.7.4.8 , to branch point 1.7
#236596 by dopry and brunodbo. Add useful date parts in the global namespace.

Revision 1.7.4.8 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 14 19:15:10 2008 UTC (16 months, 1 week ago) by greggles
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-11
Changes since 1.7.4.7: +3 -1 lines
Diff to previous 1.7.4.7 , to branch point 1.7
feature #176036 by christefano: Token support for site_mission (mission statement)

Revision 1.5.2.14 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 14 19:15:02 2008 UTC (16 months, 1 week ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.13: +3 -1 lines
Diff to previous 1.5.2.13 , to branch point 1.5
feature #176036 by christefano: Token support for site_mission (mission statement)

Revision 1.7.4.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jun 28 15:10:22 2008 UTC (16 months, 4 weeks ago) by greggles
Branch: DRUPAL-6--1
Changes since 1.7.4.6: +17 -6 lines
Diff to previous 1.7.4.6 , to branch point 1.7
bug #241288 by steamedpenguin, Gabor Hojtsy, drewish, greggles: coding standards cleanup for token

Revision 1.5.2.13 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jun 28 15:09:32 2008 UTC (16 months, 4 weeks ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.12: +18 -7 lines
Diff to previous 1.5.2.12 , to branch point 1.5
bug #241288 by steamedpenguin, Gabor Hojtsy, drewish, greggles: coding standards cleanup for token

Revision 1.7.4.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Mar 22 13:20:35 2008 UTC (20 months ago) by greggles
Branch: DRUPAL-6--1
Changes since 1.7.4.5: +1 -6 lines
Diff to previous 1.7.4.5 , to branch point 1.7
task #231323 by schuyler1d: remove token_cck.inc after cck module copies it into their module (followup by greggles, also remove the include code)

Revision 1.7.4.5 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 29 15:12:19 2008 UTC (21 months, 4 weeks ago) by eaton
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-10
Changes since 1.7.4.4: +4 -2 lines
Diff to previous 1.7.4.4 , to branch point 1.7
Temporarily commenting out CCK field support in the D6 branch, until CCK is released.

Revision 1.7.4.4 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 29 15:08:34 2008 UTC (21 months, 4 weeks ago) by eaton
Branch: DRUPAL-6--1
Changes since 1.7.4.3: +6 -4 lines
Diff to previous 1.7.4.3 , to branch point 1.7
Removing token.inc and applying #149222 to the DRUPAL-6--1 branch.

Revision 1.5.2.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 17 10:46:16 2008 UTC (22 months, 1 week ago) by greggles
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-10, DRUPAL-5--1-11
Changes since 1.5.2.11: +4 -2 lines
Diff to previous 1.5.2.11 , to branch point 1.5
bug #149222 by quicksketch: make sure object is an object before trying to clone - prevents fatal errors

Revision 1.7.4.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 9 23:39:40 2008 UTC (22 months, 2 weeks ago) by greggles
Branch: DRUPAL-6--1
Changes since 1.7.4.2: +5 -1 lines
Diff to previous 1.7.4.2 , to branch point 1.7
bug #149222 by quicksketch and jbrown: clone the object before getting tokens to prevent odd behavior under php5

Revision 1.5.2.11 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 9 23:00:10 2008 UTC (22 months, 2 weeks ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.10: +5 -1 lines
Diff to previous 1.5.2.10 , to branch point 1.5
bug #149222 by quicksketch and jbrown: clone the object before getting tokens to prevent odd behavior under php5

Revision 1.5.2.10 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 16 22:29:40 2007 UTC (2 years ago) by eaton
Branch: DRUPAL-5
Changes since 1.5.2.9: +241 -17 lines
Diff to previous 1.5.2.9 , to branch point 1.5
Merging token.module with token.inc. The latter is included in almost every situation, and separating them caused problems during the installation time.

Revision 1.7.4.2 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 16 22:25:25 2007 UTC (2 years ago) by eaton
Branch: DRUPAL-6--1
Changes since 1.7.4.1: +240 -15 lines
Diff to previous 1.7.4.1 , to branch point 1.7
Merging token.module with token.inc. The latter is included in almost every situation, and separating them caused problems during the installation time.

Revision 1.7.4.1 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 29 04:40:41 2007 UTC (2 years ago) by eaton
Branch: DRUPAL-6--1
Changes since 1.7: +5 -7 lines
Diff to previous 1.7
A direct port of the DRUPAL-5 version to DRUPAL-6--1.

Revision 1.5.2.2.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 23 16:25:40 2007 UTC (2 years, 3 months ago) by greggles
Branch: DRUPAL-4-7
CVS Tags: DRUPAL-4-7--1-5
Changes since 1.5.2.2.2.1: +5 -5 lines
Diff to previous 1.5.2.2.2.1 , to branch point 1.5.2.2 , to next main 1.5.2.18
#167560 by douggreen, options arguments needed to support things like node teasers

Revision 1.5.2.9 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 13 16:01:25 2007 UTC (2 years, 3 months ago) by greggles
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-8, DRUPAL-5--1-9
Changes since 1.5.2.8: +2 -2 lines
Diff to previous 1.5.2.8 , to branch point 1.5
#153737 by drewish, fix date error and leave date tokens empty if the underlying value is not set.  also require instead of include - these are important

Revision 1.5.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Aug 4 15:44:52 2007 UTC (2 years, 3 months ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.7: +2 -1 lines
Diff to previous 1.5.2.7 , to branch point 1.5
eliminating notices (copied from HEAD)

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 31 23:54:02 2007 UTC (2 years, 3 months ago) by eaton
Branch: MAIN
Branch point for: DRUPAL-6--1
Changes since 1.6: +2 -1 lines
Diff to previous 1.6
Eliminating notices.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 31 12:41:07 2007 UTC (2 years, 3 months ago) by eaton
Branch: MAIN
Changes since 1.5: +45 -106 lines
Diff to previous 1.5
DRUPAL-6 compatible version. CCK related tokens are still included in this version but are likely to change when CCK is ported.

Revision 1.5.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 11 22:08:49 2007 UTC (2 years, 6 months ago) by greggles
Branch: DRUPAL-5
Changes since 1.5.2.6: +2 -10 lines
Diff to previous 1.5.2.6 , to branch point 1.5
#139959 by greggles, include the includes in more places so that token_get_list will work on its own

Revision 1.5.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 14 12:39:58 2007 UTC (2 years, 7 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-7
Changes since 1.5.2.5: +8 -5 lines
Diff to previous 1.5.2.5 , to branch point 1.5
Mega-list of patches and enhancements by greggles. #136281, #136216, #136220, #136219, and most likely some other stuff. Taxonomy related tokens are now supported, the term and term-id tokens are more reliable, and other misc fixes.

Revision 1.5.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Mar 10 22:17:48 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-6
Changes since 1.5.2.4: +13 -124 lines
Diff to previous 1.5.2.4 , to branch point 1.5
Fixing a number of bugs and adding several handy tokens. (#122272, #117865, #125639, #123294, #110803, #109723) Also, splitting out the core token functions into a separate include file. That should make it a bit simpler to migrate the functionality into a core patch.

Revision 1.5.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 16 04:31:33 2007 UTC (2 years, 9 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-5
Changes since 1.5.2.3: +11 -5 lines
Diff to previous 1.5.2.3 , to branch point 1.5
Refactoring CCK field handling. Hopefully this should work a bit better.

Revision 1.5.2.2.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 28 19:42:13 2007 UTC (2 years, 9 months ago) by eaton
Branch: DRUPAL-4-7
Changes since 1.5.2.2: +15 -6 lines
Diff to previous 1.5.2.2
Fixing #112365, adding #109723 and #110803. Adding prefix/suffix capability for help text and making handling of the .inc files friendler.

Revision 1.5.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 28 19:41:59 2007 UTC (2 years, 9 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.5.2.2: +15 -6 lines
Diff to previous 1.5.2.2 , to branch point 1.5
Fixing #112365, adding #109723 and #110803. Adding prefix/suffix capability for help text and making handling of the .inc files friendler.

Revision 1.5.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 11 17:35:07 2007 UTC (2 years, 10 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-4-7--1-4, DRUPAL-5--1-3, DRUPAL-5--1-4
Branch point for: DRUPAL-4-7
Changes since 1.5.2.1: +47 -17 lines
Diff to previous 1.5.2.1 , to branch point 1.5
Adding support for configurable token delimiters. i.e., [token] or %token]

Revision 1.5.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 4 14:07:43 2007 UTC (2 years, 10 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-2
Changes since 1.5: +2 -1 lines
Diff to previous 1.5
Added section headers for the token help table.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 3 03:39:47 2007 UTC (2 years, 10 months ago) by eaton
Branch: MAIN
CVS Tags: DRUPAL-5--1-0
Branch point for: DRUPAL-5
Changes since 1.4: +2 -1 lines
Diff to previous 1.4
Include token_user.inc

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 2 07:44:39 2007 UTC (2 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.3: +5 -4 lines
Diff to previous 1.3
Fixing some blindingly obvious errors in the static token caching. Should now work when called many times in a row.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 2 07:19:20 2007 UTC (2 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.2: +15 -15 lines
Diff to previous 1.2
Whoops. Making tags more consistent.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 2 07:14:56 2007 UTC (2 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.1: +29 -1 lines
Diff to previous 1.1
Adding support for the full range of core node tokens. Creation and modification dates, first taxonomy term, etc. Should be roughly compatible with pathauto. Also added a themed help function for use in entry forms.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Dec 31 01:41:50 2006 UTC (2 years, 10 months ago) by eaton
Branch: MAIN
Initial commit of token.module, an API for placeholder substitution. Allows modules like custom_breadcrumbs, pathauto, etc to all leverage the same integration code.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2