function blogapi_blogger_get_post in Blog API 8
Same name and namespace in other branches
- 7.2 modules/blogapi_blogger/blogapi_blogger.module \blogapi_blogger_get_post()
- 7 blogapi.module \blogapi_blogger_get_post()
Callback for blogger.editPost.
Parameters
$hash: Unused variable.
$nid: Drupal node ID.
$username: Drupal username.
$pass: Drupal password.
Return value
mixed Return a response.
1 string reference to 'blogapi_blogger_get_post'
- BloggerProvider::getMethods in modules/
blogapi_blogger/ src/ Plugin/ BlogapiProvider/ BloggerProvider.php - Returns implemented methods.
File
- modules/
blogapi_blogger/ blogapi_blogger.module, line 221
Code
function blogapi_blogger_get_post($hash, $nid, $username, $pass) {
$communicator = \Drupal::service('service.communicator.blogapi');
$node = $communicator
->getPost($nid, $username, $pass);
if ($communicator
->responseIsError($node)) {
return $node;
}
return $communicator
->formatXml($node, TRUE);
}