function views_handler_field_file_filemime::render

cis7 views_handler_field_file_filemime.inc views_handler_field_file_filemime::render($values)
cle7 views_handler_field_file_filemime.inc views_handler_field_file_filemime::render($values)
elmsmedia7 views_handler_field_file_filemime.inc views_handler_field_file_filemime::render($values)
icor7 views_handler_field_file_filemime.inc views_handler_field_file_filemime::render($values)
meedjum_blog7 views_handler_field_file_filemime.inc views_handler_field_file_filemime::render($values)
mooc7 views_handler_field_file_filemime.inc views_handler_field_file_filemime::render($values)

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field_file::render

File

sites/all/modules/ulmus/views/modules/system/views_handler_field_file_filemime.inc, line 29
Definition of views_handler_field_file_filemime.

Class

views_handler_field_file_filemime
Field handler to add rendering MIME type images as an option on the filemime field.

Code

function render($values) {
  $data = $values->{$this->field_alias};
  if (!empty($this->options['filemime_image']) && $data !== NULL && $data !== '') {
    $fake_file = (object) array('filemime' => $data);
    $data = theme('file_icon', array('file' => $fake_file));
  }

  return $this->render_link($data, $values);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.