You are here

function workbench_email_form_node_callback in Workbench Email 7

Same name and namespace in other branches
  1. 7.3 workbench_email.form.inc \workbench_email_form_node_callback()

Ajax callback function, targets the workflow_email container.

Parameters

array $form: The form array

array $form_state: The form_state array

1 string reference to 'workbench_email_form_node_callback'
workbench_email_form_node_form_alter in ./workbench_email.module
Implements hook_node_form_alter().

File

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

Code

function workbench_email_form_node_callback($form, $form_state) {
  if ($form['options']['#access']) {
    return $form['options']['workflow_email'];
  }
  return $form['revision_information']['workflow_email'];
}