function hook_access_scheme_presave in Access Control Kit 7
Acts on an access scheme that is about to be inserted or updated.
This hook is invoked from AccessSchemeEntityController::save() before the scheme is saved to the database.
Parameters
object $scheme: The access scheme that is being inserted or updated.
1 function implements hook_access_scheme_presave()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- access_access_scheme_presave in ./
access.access.inc - Implements hook_access_scheme_presave().
1 invocation of hook_access_scheme_presave()
- AccessSchemeEntityController::save in ./
access_scheme_entity_controller.inc - Saves an access scheme to the database.
File
- ./
access.api.php, line 253 - Hooks provided by the access control kit module.
Code
function hook_access_scheme_presave($scheme) {
// Set a timestamp to log when the scheme was last modified.
$scheme->modified = time();
}