Hi

While there is no documentation for this module, I am not sure in this thing.
After pressing the button, I would like to do some changes inside shown node, change title, change value of some field.

But I am not sure if this is not uselessly to use rules for that.
So I would like to perform my own php code by ajax, after pressing on this button. Is it possible?
Thanks

Comments

sprinkles’s picture

There are rule options to "modify node fields." Rules (I think) would be the best way to go unless you are wanting to write your own module.

BassistJimmyJam’s picture

Currently this is not possible. I have thought about adding a hook to run on button field callback but I have not come to a decision. Rules should be able to handle your use case, and most use cases that I have been able to come up with.

firfin’s picture

Status: Active » Closed (works as designed)

Rules can handle these kind of actions.
So I guess this is not happening soon? If at all.

BassistJimmyJam’s picture

Title: to perform an action without rules? » Invoke hook on button field click
Version: 6.x-1.0 » 7.x-1.0-beta1
Category: support » feature
Status: Closed (works as designed) » Active

Seems I never updated this issue, but I do believe it would be worth it to add a hook to invoke when a button field is clicked. I have tagged this issue 7.x as new features will be added to that branch first and (possibly) backported to the 6.x branch.