Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

Yep...

kenorb’s picture

FileSize
5.86 KB

Version for 6.x in attachment

kenorb’s picture

Status: Active » Needs review
FileSize
9.11 KB

And whole module as well if patch will not work.

pkej’s picture

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

greggles’s picture

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.

pkej’s picture

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

ldbl’s picture

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 .

pkej’s picture

can you post the patch, or a zip of your module?

ldbl’s picture

FileSize
9.2 KB

It's seems that I port it.
Work on my machine with drupal 6.9

ldbl’s picture

FileSize
9.2 KB

I left one print_r just before switch for form. Until I port the module.
Here i zip file without this print-r

kenorb’s picture

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

kenorb’s picture

FileSize
9.01 KB
3.32 KB

Try this version.

ldbl’s picture

Sorry it's seems that I missed some stuff.
Next time I will be more careful.

Thanks.

ldbl’s picture

@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

Anonymous’s picture

Subscribing.
Why is there no -dev release for 6.x??

kenorb’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Drupal 5 and Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.