You are here

function _configuration_get_status_link in Configuration Management 7

Return the status name as string based on the status of passed in.

1 call to _configuration_get_status_link()
configuration_tracking_form in ./configuration.admin.inc
Menu Callback Form.

File

./configuration.admin.inc, line 1052

Code

function _configuration_get_status_link($status, $component = NULL, $config_item = NULL) {
  $diff = module_exists('diff');
  switch ($status) {
    case CONFIGURATION_ACTIVESTORE_OVERRIDDEN:
      if ($diff) {
        return l(t('Activestore Changed'), 'admin/config/system/configuration/' . $component . '/' . $config_item . '/diff');
      }
      return t('Activestore Changed');
    case CONFIGURATION_DATASTORE_OVERRIDDEN:
      if ($diff) {
        return l(t('Datastore Changed'), 'admin/config/system/configuration/' . $component . '/' . $config_item . '/diff');
      }
      return t('Datastore Changed');
    case CONFIGURATION_TRACKED_DATASTORE_ONLY:
    case CONFIGURATION_DATASTORE_ONLY:
      return t('New Configuration');
    case CONFIGURATION_IN_SYNC:
      return t('In Sync');
    case CONFIGURATION_DELETE:
      return t('No longer in Activestore');
    default:
      if ($diff) {
        return l(t('Both Changed'), 'admin/config/system/configuration/' . $component . '/' . $config_item . '/diff');
      }
      return t('Both Changed');
  }
}