Post

2 followers Follow
0
Avatar

podio create don't trigger hook.

I'm trying to create an item without triggering the hook. However it keeps firing. Can you tell me whats wrong with my code?

PodioItem::create($appid, array('fields' => array(
"activity" => $title,
"topic" => $topicarray,
"goal2" => $goal,
"equipment-needed" => $equipment,
"description-of-game" => $description,
"duration" => $duration,
"link" => $linksarray,
"published" => "Yes",
"sync" => "Yes",
),
array("hook" => false)

));

Joshua Baker

Please sign in to leave a comment.

4 comments

0
Avatar

Hi Andreas,

I have debug enabled but no error is thrown. is there any examples you could give to me as I thought this is where the query parameter is?

Josh

Joshua Baker 0 votes
0
Avatar

It should not show up as an error, you should be able to find it in the request URL, e.g. POST /item/app/123?hook=false.

Andreas Garnæs 0 votes
0
Avatar

Ah no worries i seem to have solved this with the following code. I had used hook as a string by accident using ""
$options = array('hook' => false)

Joshua Baker 0 votes