function hook_save_advising_session_from_post
Search API
This hook allows modules to perform extra functions just after an advising session is saved by the system.
The main advising form (on the View and What If tabs) are currently _not_ defined through the system's form API. Therefore, a simple hook_submit wouldn't be possible.
This hook was created to bridge that gap, until the advising form can be brought into the form API (possibly by 5.x)
Advising session values should still be in _REQUEST or _POST.
File
- includes/
hook.api.php, line 1137 - Lists all available hooks within FlightPath's core code.
Code
function hook_save_advising_session_from_post($student_id, $is_draft, $adv_id_array) {
foreach ($adv_id_array as $id) {
// Perform extra actions on those advising sessions.
}
// Example functions:
// Email student a copy of what was just advised for them to take.
// Maybe lift an advising flag in the mainframe system?
}