function _views_file_status

2 calls to _views_file_status()
Status::get_value_options in drupal/core/modules/file/lib/Drupal/file/Plugin/views/filter/Status.php
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
Status::render in drupal/core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php
Render the field.

File

drupal/core/modules/file/file.views.inc, line 522
Provide views data and handlers for file.module.

Code

function _views_file_status($choice = NULL) {
  $status = array(
    0 => t('Temporary'),
    FILE_STATUS_PERMANENT => t('Permanent'),
  );
  if (isset($choice)) {
    return isset($status[$choice]) ? $status[$choice] : t('Unknown');
  }
  return $status;
}