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);
}