function accessibility_content_field_attach_view_alter

cis7 accessibility_content.module accessibility_content_field_attach_view_alter(&$output, $context)
cle7 accessibility_content.module accessibility_content_field_attach_view_alter(&$output, $context)
elmsmedia7 accessibility_content.module accessibility_content_field_attach_view_alter(&$output, $context)
icor7 accessibility_content.module accessibility_content_field_attach_view_alter(&$output, $context)
meedjum_blog7 accessibility_content.module accessibility_content_field_attach_view_alter(&$output, $context)
mooc7 accessibility_content.module accessibility_content_field_attach_view_alter(&$output, $context)

Implements hook_field_attach_view_alter().

File

sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.module, line 52

Code

function accessibility_content_field_attach_view_alter(&$output, $context) {
  if (user_access('check content for accessibility')) {
    foreach ($output as $field_key => $field) {
      if (is_array($field) && isset($field['#field_name'])) {
        $field = field_info_instance($field['#entity_type'], $field['#field_name'], $field['#bundle']);
        if (isset($field['accessibility_content']) && $field['accessibility_content']) {
          module_load_include('inc', 'accessibility_content', 'accessibility_content');
          accessibility_content_init();
          $output[$field_key]['#pre_render'][] = '_accessibility_content_field_pre_render';
        }
      }
    }
  }
}
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.