Attaching patch. The if-else structure is quite redundant, I'm not sure if the following abides to Drupal coding standards:

if ($boolean) {
  // code
  return $something;
}
// implicit else
return $something_else;

Un-tested patch.

CommentFileSizeAuthor
echo_or_return_token.patch2.51 KBflevour
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brmassa’s picture

Status: Needs review » Needs work

Francesco,

i still dont know much how the final output for direct call should be. i dont know if printing the serialised array is the right thing to do.

im building a dummy module for testing OAuth. It still only uses XML RPC. I will commit in a few hours.

regards,

massa

brmassa’s picture

Status: Needs work » Closed (works as designed)

Francesco,

for now, this values should be send thru Web Services.

regards,

massa