function hook_prepopulate_whitelist_alter in Prepopulate 8.2
Alter whitelisted element types.
Parameters
array &$whitelisted_types: Whitelisted element types.
1 function implements hook_prepopulate_whitelist_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- prepopulate_test_unsafe_prepopulate_whitelist_alter in tests/
modules/ prepopulate_test_unsafe/ prepopulate_test_unsafe.module - Implements hook_prepopulate_whitelist_alter().
1 invocation of hook_prepopulate_whitelist_alter()
- Populate::__construct in src/
Populate.php - Populate constructor.
File
- ./
prepopulate.api.php, line 14 - Documentation for prepopulate API.
Code
function hook_prepopulate_whitelist_alter(array &$whitelisted_types) {
// Adds 'my_custom_element'to the list of allowed elements that can be
// prepopulated.
$whitelisted_types[] = 'my_custom_element';
}