function hook_location_taxonomize_initialize in Location Taxonomize 7.2
Act during the Location Taxonomize initialization process.
This is called during location_taxonomize_initialize, which is called after the initial initialization form is submitted. Use this to take any action when LT is initialized.
Parameters
$settings: Array of initialization settings, including the following keys:
- 'source' - the machine name of the selected source module
- 'method' - the initialization method ('new' or 'existing')
- 'hierarchy' - the hierarchy selected for the vocabulary.
1 function implements hook_location_taxonomize_initialize()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- location_taxonomize_af_location_taxonomize_initialize in location_taxonomize_af/
location_taxonomize_af.module - Implements hook_location_taxonomize_initialize().
1 invocation of hook_location_taxonomize_initialize()
- location_taxonomize_initialize in ./
location_taxonomize.module - Submit callback for the initialization config form. Handles initialization of Location Taxonomy.
File
- ./
location_taxonomize.api.php, line 39 - API documentation for the Location Taxonomize module.
Code
function hook_location_taxonomize_initialize($settings) {
// Display a special message if the source is Address Field.
if ($settings['source'] == 'location_taxonomize_af') {
drupal_set_message(t("NOTE: In order to actually taxonomize data from Address Field fields, you must also edit the individual fields and enable the 'Taxonomize locations from this field' checkbox."), 'warning');
}
}