You are here

function pmpapi_query_tools_delete_query in Public Media Platform API Integration 7

Deletes all data for a given query.

Parameters

string $query: Name of a saved PMP query.

1 call to pmpapi_query_tools_delete_query()
pmpapi_query_tools_remove_query_form_submit in pmpapi_query_tools/pmpapi_query_tools.admin.inc
Form submission handler for pmpapi_query_tools_remove_query_form().

File

pmpapi_query_tools/pmpapi_query_tools.module, line 123
Allows admins to build, save, and execute PMP queries

Code

function pmpapi_query_tools_delete_query($query) {
  db_delete('pmpapi_query_tools_queries')
    ->condition('name', $query)
    ->execute();
  module_invoke_all('pmpapi_query_tools_query_delete', $query);
}