function _views_file_status

3.x system.views.inc _views_file_status($choice = NULL)
2.x system.views.inc _views_file_status($choice = NULL)
2 calls to _views_file_status()
views_handler_field_file_status::render in modules/system/views_handler_field_file_status.inc
Render the field.
views_handler_filter_file_status::get_value_options in modules/system/views_handler_filter_file_status.inc
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.

File

modules/system.views.inc, line 567
Provide views data and handlers for system.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;
}