You are here

function workbench_email_delete in Workbench Email 7

Same name and namespace in other branches
  1. 7.3 workbench_email.module \workbench_email_delete()

Deletes the email from the table.

Parameters

object $transition: The transition object

int $rid: The role ID

Return value

db_delete Returns TRUE or FALSE

1 call to workbench_email_delete()
workbench_email_transitions_form_submit in ./workbench_email.admin.inc
Form submit handler for email transitions.

File

./workbench_email.module, line 480
Code for the Workbench Email Module.

Code

function workbench_email_delete($transition, $rid) {
  db_delete('workbench_emails')
    ->condition('from_name', $transition->from_name)
    ->condition('to_name', $transition->to_name)
    ->condition('rid', $rid)
    ->execute();
}