Closed (outdated)
Project:
Editable Fields
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2013 at 11:13 UTC
Updated:
30 May 2018 at 18:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
geraldito commentedYou just have to look for the form name and do something like:
Comment #2
chertzogWiIth the latest dev:
Around Line 472:
Change:
To:
Comment #3
vaibhav571 commentedYou can use this patch to alter the forms using hook_editablefields_form_alter to alter the forms which will be rendered while in the editing mode
Comment #4
reevo commentedI found the patch in #3 resulted in editable fields failing to render unless hook_editablefields_form_alter was invoked. The attached patch achieves the desired outcome by using drupal_alter to enable alteration of both the $form and $form_state.
Comment #5
joelpittetSeems to moved to a feature request
Comment #6
Collins405 commentedEven with patch 3, any hook i use simply gets ignored by the editable field.
I can see the results in devel dpm() but nothing happens in the actual field.
Comment #7
joelpittetWhy can't this be done as a hook_form_alter? Sorry if you described this already
Comment #8
reevo commented@joelpittet I distinctly remember being unable to achieve any alterations to editable fields, which is why I found this issue in the first place, however this no longer appears to be the case.
So, I'm happy to confirm that I'm now able to alter editable fields using the standard hook_form_alter. Please note, though, that I'm not rendering editable fields using Views as others in this thread appear to be.
Comment #9
joelpittetThanks for the confirmation @reevo
Comment #10
mducharme commentedSince hook_form_alter can be used now, the original issue is now outdated. Marking as such.