Closed (fixed)
Project:
Services
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Feb 2012 at 19:23 UTC
Updated:
5 Apr 2012 at 07:40 UTC
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
Comment #1
marcingy commentedThis sounds like a seperate project to me.
Comment #2
MrMaksimize commentedGreat! 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?
Comment #3
cotto commentedTake 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.
Comment #4
MrMaksimize commentedOh beautiful!! Definitely will try this one out.. seems like exactly what i need :)
Comment #5
cotto commentedI 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.