sites associés
This commit is contained in:
@@ -161,11 +161,11 @@ function reha_preprocess_page(&$variables) {
|
||||
|
||||
function reha_preprocess_block(&$variables) {
|
||||
|
||||
// // Conserver les IDs existants et générer un ID unique uniquement si aucun ID n'est présent
|
||||
// if (empty($variables['attributes']['id'])) {
|
||||
// $block_id = 'block-' . uniqid();
|
||||
// $variables['attributes']['id'] = $block_id;
|
||||
// }
|
||||
// Conserver les IDs existants et générer un ID unique uniquement si aucun ID n'est présent
|
||||
if (empty($variables['attributes']['id'])) {
|
||||
$block_id = 'block-' . uniqid();
|
||||
$variables['attributes']['id'] = $block_id;
|
||||
}
|
||||
|
||||
if ($variables['plugin_id'] === "user_login_block") {
|
||||
$url = new Url('user.register', [], ['query' => ['destination' => '/node/add/operation']]);
|
||||
|
||||
Reference in New Issue
Block a user