function _views_file_status in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 6.3 modules/system.views.inc \_views_file_status()
- 6.2 modules/system.views.inc \_views_file_status()
- 7.3 modules/system.views.inc \_views_file_status()
2 calls to _views_file_status()
- Status::get_value_options in lib/
Views/ 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 lib/
Views/ file/ Plugin/ views/ field/ Status.php - Render the field.
File
- modules/
file.views.inc, line 521 - 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;
}