Fix for Code

  1. function befimmo_surfaces_help($section) {
  2.   switch ($section) {
  3.     case 'admin/help#services_node':
  4.       return t('<p>Provides echo methods to services applications. Requires services.module.</p>');
  5.     case 'admin/modules#description':
  6.       return t('Provides echo methods to services applications. Requires services.module.');
  7.   }
  8. }
  9.  
  10. /**
  11. * Implementation of hook_service()
  12. */
  13. function befimmo_surfaces_service() {
  14.   return array(
  15.     // echo.echo
  16.     array(
  17.       '#method'   => 'echo.echo',
  18.       '#callback' => 'befimmo_surfaces_echo',
  19.       '#auth'     => false,
  20.       '#return'   => 'array',
  21.       '#args'     => array(
  22.         array(
  23.           '#name'         => 'message',
  24.           '#type'         => 'string',
  25.           '#description'  => t('The message to return.'),
  26.         )),
  27.       '#help'     => t('Returns an object containing a sessid and user.'))
  28.      
  29.   );
  30. }
  31.  
  32. function befimmo_surfaces_echo($message) {
  33.  
  34.   return $message;
  35.   /*
  36.   $return = new stdClass();
  37.   $return->sessid = session_id();
  38.   $return->message = $message;
  39.  
  40.   return $return;
  41. */
  42. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.