You are here

function revisioning_condition_revision_is_label in Revisioning 8

Same name and namespace in other branches
  1. 6.4 revisioning.rules.inc \revisioning_condition_revision_is_label()
  2. 6.3 revisioning.rules.inc \revisioning_condition_revision_is_label()
  3. 7 revisioning.rules.inc \revisioning_condition_revision_is_label()

Label callback for "revisioning_revision_is" condition.

File

./revisioning.rules.inc, line 185
Rules integration for Revisioning module.

Code

function revisioning_condition_revision_is_label($settings, $argument_labels) {
  $names = array_intersect_key(revisioning_revision_states(), $settings['revision_type']);
  return t('Revision status of @node is: @type', $argument_labels + array(
    '@type' => implode(t(' or '), $names),
  ));
}