function accessibility_test_render

cis7 accessibility.module accessibility_test_render($test, $view_mode = 'default')
cle7 accessibility.module accessibility_test_render($test, $view_mode = 'default')
elmsmedia7 accessibility.module accessibility_test_render($test, $view_mode = 'default')
icor7 accessibility.module accessibility_test_render($test, $view_mode = 'default')
meedjum_blog7 accessibility.module accessibility_test_render($test, $view_mode = 'default')
mooc7 accessibility.module accessibility_test_render($test, $view_mode = 'default')
2 calls to accessibility_test_render()
accessibility_test_page_view in sites/all/modules/ulmus/accessibility/accessibility.module
View callback for accessibility test entities.
accessibility_test_page_view_json in sites/all/modules/ulmus/accessibility/accessibility.module
JSON render callback for accessibility test entities.

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 590

Code

function accessibility_test_render($test, $view_mode = 'default') {
  $test->content = array();
  field_attach_prepare_view('accessibility_test', array($test->test_id => $test), $view_mode);
  entity_prepare_view('accessibility_test', array($test->test_id => $test));
  $test->content += field_attach_view('accessibility_test', $test, $view_mode);
  $extra_fields = field_info_extra_fields('accessibility_test', 'accessibility_test', 'display');
  if ($extra_fields['quail_name']['display'][$view_mode]['visible']) {
    $test->content['quail_name'] = array(
      '#type' => 'item',
      '#title' => $extra_fields['quail_name']['label'],
      '#markup' => check_plain($test->quail_name),
      '#weight' => $extra_fields['quail_name']['display'][$view_mode],
    );
  }
  if ($extra_fields['severity']['display'][$view_mode]['visible']) {
    $test->content['severity'] = array(
      '#type' => 'item',
      '#title' => $extra_fields['severity']['label'],
      '#markup' => $test->severity,
      '#weight' => $extra_fields['quail_name']['display'][$view_mode],
    );
  }
  if ($extra_fields['status']['display'][$view_mode]['visible']) {
    $test->content['status'] = array(
      '#type' => 'item',
      '#title' => $extra_fields['status']['label'],
      '#markup' => ($test->status) ? t('Active') : t('Inactive'),
      '#weight' => $extra_fields['quail_name']['display'][$view_mode],
    );
  }
  module_invoke_all('entity_view', $test, 'accessibility_test', $view_mode);
}
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.