- Issue created by @swentel
- Assigned to elber
- @elber opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:01pm 28 February 2023 - 🇧🇷Brazil elber Brazil
Hi I moved the logic to a new service, please revise.
- Status changed to Needs work
over 1 year ago 12:41pm 1 March 2023 - 🇧🇪Belgium swentel
Can you move the submit function to the service as well? Thanks!
This line:
$form['actions'][$action]['#submit'][] = 'nostr_simple_publish_node_form_submit';
should become something like this:
$form['actions'][$action]['#submit'][] =[$this, 'submitToNostr']
- Assigned to elber
- 🇧🇷Brazil elber Brazil
Hi @swentel, Do you want that I put the submit in a new service or I can to used the same service?
- 🇧🇪Belgium swentel
Oh, that can be in the same service, that's totally fine.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:03pm 1 March 2023 - 🇧🇷Brazil elber Brazil
Hi I added a service to submit and I moved the logic in the hook to there, but I couldn't to do it
$form['actions'][$action]['#submit'][] =[$this, 'submitToNostr']
I had this errorcall_user_func_array(): Argument #1 ($callback) must be a valid callback, array must have exactly two
- 🇧🇷Brazil elber Brazil
sorry I tried to do a rebase but I couldn't , @swentel could you please try ?
- Status changed to Fixed
over 1 year ago 7:34pm 20 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.