You are here

function _webfm_dbdelete_attach_fid in Web File Manager 5.2

Same name and namespace in other branches
  1. 5 webfm.module \_webfm_dbdelete_attach_fid()

Helper function that deletes db entries from the webfm_attach table given fid called from webfm_dbdelete_file

Parameters

int $fid:

Return value

bool

1 call to _webfm_dbdelete_attach_fid()
webfm_dbdelete_file in ./webfm.module
webfm_dbdelete_file - Deletes all database references to a file given and fid Calling this function will delete the file from the webfm_file table AS WELL AS the webfm_attach table therefore any nodes that have this file attached to them will lose…

File

./webfm.module, line 2252

Code

function _webfm_dbdelete_attach_fid($fid) {
  $query = 'DELETE FROM {webfm_attach} WHERE fid = %d';
  $result = db_query($query, $fid);
  if ($result === FALSE) {
    return FALSE;
  }
  return TRUE;
}