You are here

function _revisioning_revision_states in Revisioning 6.4

Return a single or all possible revision state names.

Parameters

$state: optional state id, as defined in revisioning_api.inc

Return value

if $state is provided, state name. Otherwise, state names array keyed by state id.

2 calls to _revisioning_revision_states()
revisioning_condition_revision_is_form in ./revisioning.rules.inc
revisioning_condition_revision_is_label in ./revisioning.rules.inc
Label callback for "revisioning_revision_is" condition.

File

./revisioning_api.inc, line 39
API functions of Revisioning module

Code

function _revisioning_revision_states($state = NULL) {
  $states = array(
    REVISION_PENDING => t('Pending'),
    REVISION_CURRENT => t('Current, published'),
    REVISION_ARCHIVED => t('Archived'),
  );
  return empty($state) ? $states : $states[$state];
}