Same name and namespace in other branches
  1. 4.6.x modules/blogapi.module \blogapi_error()
  2. 4.7.x modules/blogapi.module \blogapi_error()
  3. 6.x modules/blogapi/blogapi.module \blogapi_error()

Prepare an error message for returning to the XMLRPC caller.

11 calls to blogapi_error()
blogapi_blogger_delete_post in modules/blogapi/blogapi.module
Blogging API callback. Removes the specified blog node.
blogapi_blogger_edit_post in modules/blogapi/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_get_post in modules/blogapi/blogapi.module
Blogging API callback. Returns a specified blog node.
blogapi_blogger_get_recent_posts in modules/blogapi/blogapi.module
Blogging API callback. Returns the latest few postings in a user's blog. $bodies TRUE <a href="http://movabletype.org/docs/mtmanual_programmatic.html#item_mt%2EgetRece... returns a bandwidth-friendly list</a>.
blogapi_blogger_new_post in modules/blogapi/blogapi.module
Blogging API callback. Inserts a new blog post as a node.

... See full list

File

modules/blogapi/blogapi.module, line 634
Enable users to post using applications that support XML-RPC blog APIs.

Code

function blogapi_error($message) {
  static $xmlrpcusererr;
  if (!is_array($message)) {
    $message = array(
      $message,
    );
  }
  $message = implode(' ', $message);
  return xmlrpc_error($xmlrpcusererr + 1, strip_tags($message));
}