Now the compute and display function names are hardcoded.

We could use a hook to specify the compute and display functions.

Members fund testing for the Drupal project. Drupal Association Learn more


skipyT’s picture

Status: Needs work » Needs review
13.97 KB

I've created a patch file which creates 2 new hooks:
- hook_computed_field().
- hook_computed_field_alter().

Where you can specify the compute and display functions for each computed field.

skipyT’s picture

Category: task » feature
Priority: Normal » Major

I modified a little the patch file.
Still needs review.

diggingrelic’s picture

I would like to see this implemented. I hope someone gets to this soon.

skipyT’s picture

I made the patch file, I'm using it on a huge project but noone reviewed it from the module maitainers.

I also asked for maitaining the module, but I didn't get any reply... I would be glad to help on maitaining this module, but this is difficult with patch files only...

skipyT’s picture

I saw now, that I forgot to attach the new patch file. This is a fully functional implementation of the hook system to compute the fields.

colan’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

New features go into the latest dev branch.