You are here

function theme_emfield_handler_field_status in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6.2 includes/views/emfield.views.inc \theme_emfield_handler_field_status()
2 theme calls to theme_emfield_handler_field_status()
emfield_handler_field_status::render in includes/views/handlers/emfield_handler_field_status.inc
emfield_handler_field_status::render_provider in includes/views/handlers/emfield_handler_field_status.inc

File

includes/views/emfield.views.inc, line 110
Interface between emfield.module and views.module.

Code

function theme_emfield_handler_field_status($item, $field, $node, $values, $format) {
  $output = '';
  if (!empty($item) || $item == '0') {
    switch ($format) {
      case 'status':
      default:
        switch ($item['status']) {
          case EMFIELD_STATUS_UNAVAILABLE:
            return t('unavailable');
          case EMFIELD_STATUS_PRIVATE:
            return t('private');
          case EMFIELD_STATUS_AVAILABLE:
          default:
            return t('available');
        }
    }
  }
}