function hook_save_advising_session
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)
File
- includes/
hook.api.php, line 1109 - Lists all available hooks within FlightPath's core code.
Code
function hook_save_advising_session($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?
}