Issue #1120440 by er.pushpinderrana | skwashd: Fixed user.api.php hook summary lines should be more consistent with other entity hooks.
parent
5027a94d1e
commit
310065c31c
|
@ -371,7 +371,7 @@ function hook_user_view_alter(array &$build, \Drupal\user\UserInterface $account
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inform other modules that a user role is about to be saved.
|
* Act on a user role being inserted or updated.
|
||||||
*
|
*
|
||||||
* Modules implementing this hook can act on the user role object before
|
* Modules implementing this hook can act on the user role object before
|
||||||
* it has been saved to the database.
|
* it has been saved to the database.
|
||||||
|
@ -390,7 +390,7 @@ function hook_user_role_presave($role) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inform other modules that a user role has been added.
|
* Respond to creation of a new user role.
|
||||||
*
|
*
|
||||||
* Modules implementing this hook can act on the user role object when saved to
|
* Modules implementing this hook can act on the user role object when saved to
|
||||||
* the database. It's recommended that you implement this hook if your module
|
* the database. It's recommended that you implement this hook if your module
|
||||||
|
@ -411,7 +411,7 @@ function hook_user_role_insert($role) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inform other modules that a user role has been updated.
|
* Respond to updates to a user role.
|
||||||
*
|
*
|
||||||
* Modules implementing this hook can act on the user role object when updated.
|
* Modules implementing this hook can act on the user role object when updated.
|
||||||
* It's recommended that you implement this hook if your module adds additional
|
* It's recommended that you implement this hook if your module adds additional
|
||||||
|
@ -432,7 +432,7 @@ function hook_user_role_update($role) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inform other modules that a user role has been deleted.
|
* Respond to user role deletion.
|
||||||
*
|
*
|
||||||
* This hook allows you act when a user role has been deleted.
|
* This hook allows you act when a user role has been deleted.
|
||||||
* If your module stores references to roles, it's recommended that you
|
* If your module stores references to roles, it's recommended that you
|
||||||
|
|
Loading…
Reference in New Issue