function accessibility_handler_edit_link_field::render

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

Overrides accessibility_handler_link_field::render

File

sites/all/modules/ulmus/accessibility/views/accessibility_handler_edit_link_field.inc, line 17
Contains a Views field handler to take care of displaying edit links as fields

Class

accessibility_handler_edit_link_field

Code

function render($values) {
  $type = $values->{$this->aliases['test_id']};

  //Creating a dummy accessibility to check access against
  $dummy_accessibility = (object) array('type' => $type);
  if (!accessibility_test_access('edit', $dummy_accessibility)) {
    return;
  }

  $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
  $accessibility_id = $values->{$this->aliases['test_id']};

  return l($text, 'accessibility-test/' . $accessibility_id . '/edit');
}
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.