Closed (fixed)
Project:
Node and Comments Form Settings
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2011 at 18:35 UTC
Updated:
20 Apr 2018 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
szantog commentedAnd patch
Comment #2
lelizondo commentedI never used that module. What is exactly what it does? Does it translate fields also and NFS is just not recognizing those translations?
This sounds like it could work, unfortunately, the patch needs work, since you're removing what I think are essential parts of this NFS that without them, NFS will *need* ipetranslation to work.
What you could do is wrap everything inside:
but not remove anything else unless the module will work, with or without ipetranslation
Comment #3
szantog commentedNo, I don't remove anything, I don't change anything, I've just completed your codes with if (module_exists.. part) :)
The problem is the next with ipetranslation:
I have 3 language. The ipetranslation changes the node add/edit form. All three language fields in one form. Well, there are 3 title, and 3 body field. Without this patch only the original language fields accept the nfs settings. If I set the body row 3, and I'm on node/add form, only the default languages body field has 3 line body, the others are default.
Let's see this pictures:
Default: http://img714.imageshack.us/img714/7573/kijells015.png
With patch: http://img811.imageshack.us/i/kijells014.png/
The core has a form item body_field, the ipetranslation creates own body field for all langauge like this: body_field_[LANG_CODE].
My patch completes your default body transformations, if ipetranslation installed, transform the other language all body_field_[LANG_CODE] too.
What you see as remove,
- return $form;
it isn't neccessary, because the $form parameter is with &
function _option_nfs_inputformat(&$form..
Comment #4
lelizondo commentedMy bad. I'll take a deep look into it.
Comment #6
kssundar commentedPorted to 6.x-3.x