function hook_alter_student_profile_items
Search API
7.x user.api.php | hook_alter_student_profile_items($bool_mini, &$extra_profile_items, $bool_balance = TRUE, $alt_section = "") |
6.x user.api.php | hook_alter_student_profile_items($bool_mini, &$extra_profile_items, $bool_balance = TRUE, $alt_section = "") |
This hook is called before displaying the student profile box (which appears at the top of the screen on the profile page, as well as other tabs. If bool_mini is set to TRUE, then it means we are showing an abbreviated display, like on the Degree tab. If FALSE, it means we are showing everything, like on the student profile tab.
Notice that the $extra_profile_items are passed by reference. There is no need to return a value as a result.
1 function implements hook_alter_student_profile_items()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- user_alter_student_profile_items in modules/
user/ user.module - Implements hook_alter_student_profile_items
File
- includes/
hook.api.php, line 132 - Lists all available hooks within FlightPath's core code.
Code
function hook_alter_student_profile_items($bool_mini, &$extra_profile_items) {
// Add this item for test scores:
$extra_profile_items ['right_side'][] = array(
'label' => 'ACT Score:',
'content' => '33 (28 E / 35 M)',
);
}