function action_delete

Deletes a single action from the database.

Parameters

$aid: The ID of the action to delete.

2 calls to action_delete()
action_admin_delete_form_submit in drupal/core/modules/action/action.admin.inc
Form submission handler for action_admin_delete_form().
action_synchronize in drupal/core/modules/action/action.module
Synchronizes actions that are provided by modules in hook_action_info().

File

drupal/core/modules/action/action.module, line 465
This is the Actions module for executing stored actions.

Code

function action_delete($aid) {
  db_delete('actions')
    ->condition('aid', $aid)
    ->execute();
  module_invoke_all('action_delete', $aid);
}