function hook_profile2_type_load in Profile 2 7.2
Same name and namespace in other branches
- 7 profile2.api.php \hook_profile2_type_load()
Act on profile type being loaded from the database.
This hook is invoked during profile type loading, which is handled by entity_load(), via the EntityCRUDController.
Parameters
$types: An array of profiles being loaded, keyed by profile type names.
1 function implements hook_profile2_type_load()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- profile2_page_profile2_type_load in contrib/
profile2_page.module - Implements hook_profile2_type_load().
File
- ./
profile2.api.php, line 160 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_profile2_type_load($types) {
if (isset($types['main'])) {
$types['main']->userCategory = FALSE;
$types['main']->userView = FALSE;
}
}