Now the compute and display function names are hardcoded.

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

Comments

Status:Needs work» Needs review
StatusFileSize
new13.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.

Category:task» feature
Priority:Normal» Major

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

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

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...

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.

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

New features go into the latest dev branch.