Function __global->delete_attachments

Definitions

sources/attachments3.php

  • Delete attachments solely used by the specified hook.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type ID_TEXT No No required parameter N/A N/A The hook
$db ?object No No Null N/A N/A The database connector to use (null: standard site connector)

Preview

Code (PHP)

/**
 * Delete attachments solely used by the specified hook.
 *
 * @param  ID_TEXT $type The hook
 * @param  ?object $db The database connector to use (null: standard site connector)
 */

function delete_attachments(string $type, ?object $db = null)