' . t('About') . ''; $output .= '
' . t('This module provides the functionality to create, validate and manage WissKI Cloud accounts.') . '
'; $output .= '' . t('Configuration is done on the settings page.', ['@settingsPage' => '/admin/config/wisski-cloud-account-manager/settings']) . '
'; $output .= '' . t('This page allows you to create a WissKI Cloud account.', ['@createPage' => '/wisski-cloud-account-manager/create']) . '
'; $output .= '' . t('This page allows you to validate your account and check the status of the provision.', ['@validationPage' => '/wisski-cloud-account-manager/validate/GsyMv5DdFhPCixL1wTLZhzFg7sVDOiHq']) . '
'; break; } return $output; } /** * Implements hook_mail(). */ function wisski_cloud_account_manager_mail($key, &$message, $params) { $options = [ 'langcode' => $message['langcode'], ]; switch ($key) { case 'wisski_cloud_account_validation': $message['from'] = \Drupal::config('system.site')->get('mail'); $message['subject'] = t('@subject', ['@subject' => $params['subject']], $options); $message['body'][] = $params['message']; $headers = [ 'Content-Type' => 'text/html; charset=UTF-8; format=flowed', 'MIME-Version' => '1.0', 'Content-Transfer-Encoding' => '8Bit', 'X-Mailer' => 'Drupal', ]; $message['headers'] = $headers; break; } } /** * Implements hook_theme(). */ function wisski_cloud_account_manager_theme($existing, $type, $theme, $path) { return [ 'wisski_cloud_account_manager_terms_and_conditions_page' => [ 'variables' => ['date' => NULL], ], 'wisski_cloud_account_manager_account_managing_page' => [ 'variables' => ['accounts' => NULL], ], 'wisski_cloud_account_manager_validation_page' => [ 'variables' => ['account' => NULL], ], ]; }