You are here

function blogapi_blogger_delete_post in Blog API 8

Same name and namespace in other branches
  1. 7.2 modules/blogapi_blogger/blogapi_blogger.module \blogapi_blogger_delete_post()
  2. 7 blogapi.module \blogapi_blogger_delete_post()

Callback for blogger.deletePost.

Parameters

$hash: Unused value.

$nid: The node ID.

$username: Drupal username.

$pass: Drupal password.

$publish: Boolean Drupal publish status.

Return value

bool|object BlogAPI response.

1 string reference to 'blogapi_blogger_delete_post'
BloggerProvider::getMethods in modules/blogapi_blogger/src/Plugin/BlogapiProvider/BloggerProvider.php
Returns implemented methods.

File

modules/blogapi_blogger/blogapi_blogger.module, line 46

Code

function blogapi_blogger_delete_post($hash, $nid, $username, $pass, $publish) {
  $communicator = \Drupal::service('service.communicator.blogapi');
  return $communicator
    ->deletePost($nid, $username, $pass);
}