function hook_content_alter

Similar to hook_form_alter, this function lets other modules alter content which is being rendered through the "render" system.

You may make changes to the render array.

4 functions implement hook_content_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

calendar_content_alter in modules/calendar/calendar.module
Implements hook_content_alter. We want to alter the way that our calendar appointments are displayed.
prereqs_content_alter in modules/prereqs/prereqs.module
Implememnt hook_content_alter
schools_content_alter in modules/schools/schools.module
student_files_content_alter in modules/student_files/student_files.module
Implememnt hook_content_alter

File

includes/hook.api.php, line 150
Lists all available hooks within FlightPath's core code.

Code

function hook_content_alter(&$render, $render_id) {
  if ($render_id == 'some_id') {
    $render_array ['extra'] = array(
      'value' => 'Add this extra content.',
    );
  }
}