Tokenize for 6.x
greggles - October 16, 2008 - 22:43
| Project: | Tokenize |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Yep...
| Project: | Tokenize |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Yep...
#1
Yep...
#2
Version for 6.x in attachment
#3
And whole module as well if patch will not work.
#4
It _seems_ to work except for:
The form settings aren't saved, so everytime I go into the field, I have to set the Tokenize options.
Nothing is saved in the database.
Anyway, I tested Automatic Nodetitles in both a 6.x with Tokenize, and one without, and as far as I can see the functionality of tokenizing the CCK fields works in both, it seems to be a part of Token or CCK now.
I do believe I used to use Tokenize in 5.x to get tokens from CCK fields, but now it doesn't seem neccessary.
Can you confirm? Or please tell me why I need it, as I might have forgotten.
Best regards,
Paul
#5
Paul - Automatic Nodetitles gets the CCK Tokens through the Token API. The CCK modules themselves provide the Tokens for CCK fields.
Tokenize allows you to enter tokens into CCK fields and have them replaced with the proper value.
#6
Well, then it isn't working on 6.6. The settings aren't saved to the database. The tokenize table is empty.
I have tried to create two fields for this without anything happening. I'll take a stab at the code myself.
Paul
#7
I also try it and it not work with drupal 6.9 . I change module a little bit and tokenize table was filled.
But still doesn't work. Problem was in form variables .
#8
can you post the patch, or a zip of your module?
#9
It's seems that I port it.
Work on my machine with drupal 6.9
#10
I left one print_r just before switch for form. Until I port the module.
Here i zip file without this print-r
#11
You should fix in this version some things that was converted in my version.
- Like serialize and unserialize when calling cache is not necessary anymore.
http://api.drupal.org/api/function/cache_set
- No dependency for Content module
#12
Try this version.
#13
Sorry it's seems that I missed some stuff.
Next time I will be more careful.
Thanks.
#14
@kenorb
I tried your version and I receive this error:
Fatal error: Cannot use string offset as an array in /home/mystite/bport/sites/all/modules/tokenize/tokenize.module on line 154