So just want to throw this out there. I'm looking at making a context condition plugin for services so I can check in other modules if this is a services call or it's coming from a ui.

Two questions:
What do you guys think?
And should I try and submit a patch for it to get into services or go the separate module route? Wasn't sure since services_views got moved out.

Comments

marcingy’s picture

This sounds like a seperate project to me.

MrMaksimize’s picture

Great! Thanks for the advice. I know it's a bit out of scope for this issue, but any suggestions where I can hook in to services to trigger the check for context?

cotto’s picture

Take a look at hook_services_request_preprocess_alter(). That might not be called for some kinds of invalid requests, but it'll get hit for all of the valid ones.

MrMaksimize’s picture

Oh beautiful!! Definitely will try this one out.. seems like exactly what i need :)

cotto’s picture

Status: Active » Fixed

I get the impression that you're happy with the answers you've gotten, so 'm marking this as fixed. If that's not the case, feel free to reopen.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.