You are here

function subscriptions_content_get_default_workflow in Subscriptions 2.0.x

Same name and namespace in other branches
  1. 6 subscriptions_content.module \subscriptions_content_get_default_workflow()
  2. 7 subscriptions_content.module \subscriptions_content_get_default_workflow()

Returns the default workflow.

Parameters

string $content_type:

Return value

array The presence of an element indicates that the corresponding node/comment actions will trigger notifications.

3 calls to subscriptions_content_get_default_workflow()
subscriptions_content_form_comment_form_alter in subscriptions_content/subscriptions_content.module
Implements hook_form_alter().
subscriptions_content_form_node_type_form_alter in subscriptions_content/subscriptions_content.module
Implements hook_form_alter().
subscriptions_content_node_prepare in subscriptions_content/subscriptions_content.module
Implements hook_node_prepare().

File

subscriptions_content/subscriptions_content.module, line 476
Subscriptions to content events.

Code

function subscriptions_content_get_default_workflow($content_type) {
  return variable_get('subscriptions_default_workflow_' . $content_type, [
    'n_new',
    'n_unpub',
    'n_pub',
    'c_new',
    'c_unpub',
    'c_pub',
  ]);
}