Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ft_update_submission_hooks #1

@benkeen

Description

@benkeen

As per forum thread: http://forums.formtools.org/showthread.php?tid=2999

and as requested by Joe

I had code in the hooks manager for 'ft_update_submission, start' and 'end'. When ft_update_submission was called by edit_submission.php thus
[code]list($g_success, $g_message) = ft_update_submission($form_id, $submission_id, $request);[/code]
the variables $g_success and $g_message were being returned as NULLs. This then resulted in the $failed_validation being true. This was irrespective of the failure or success of my code.

Now although my code was actually working, there are two override variables in the hook manager... $success and $message which I was not manipulating. They were defaulting to NULL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions