Hooks provided by the Path module.
Path module provides automatic path aliasing by using tokens in path
patterns. Thus the simplest integration is just to provide tokens using
hook_token_info() and hook_tokens().
If you wish to provide automatic path creation for custom paths provided by
your module, there are a few steps involved.
Provide information required by Path for the settings form as well as
bulk generation. See the documentation for hook_path_info() for more
At the appropriate time (usually when a new item is being created for
which a generated alias is desired), call path_generate_entity_alias()
with the appropriate parameters to generate the alias. Then save the
alias with path_save_automatic_alias(). See the user, taxonomy, and node
hook implementations for examples.
At the appropriate time (usually when an item is being deleted), call
path_delete_all_by_source() to remove any aliases that were created for the
content being removed. See the documentation for path_delete_all_by_source() for
There are other integration points with Path module, namely alter hooks that
allow you to change the data used by Path at various points in the
process. See the below hook documentation for details.