function accessibility_test_page_view_json

cis7 accessibility.module accessibility_test_page_view_json($test, $view_mode = 'popup')
cle7 accessibility.module accessibility_test_page_view_json($test, $view_mode = 'popup')
elmsmedia7 accessibility.module accessibility_test_page_view_json($test, $view_mode = 'popup')
icor7 accessibility.module accessibility_test_page_view_json($test, $view_mode = 'popup')
meedjum_blog7 accessibility.module accessibility_test_page_view_json($test, $view_mode = 'popup')
mooc7 accessibility.module accessibility_test_page_view_json($test, $view_mode = 'popup')

JSON render callback for accessibility test entities.

1 string reference to 'accessibility_test_page_view_json'
accessibility_menu in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_menu().

File

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

Code

function accessibility_test_page_view_json($test, $view_mode = 'popup') {
  accessibility_test_render($test, $view_mode);
  $test->content['#prefix'] = '<div class="accessibility-test">';
  $test->content['#suffix'] = '</div>';
  $json = array(
    'content' => drupal_render($test->content),
    'title' => $test->name,
  );
  drupal_json_output($json);
}
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.