Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACMS-2007: Remove duplicate code from Acquia CMS as available in Acquia CMS Common module. #1659

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions acquia_cms.module
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,3 @@ function acquia_cms_preprocess_status_report_general_info(&$variables) {
$extensionInfo = \Drupal::service('extension.list.module')->getExtensionInfo('acquia_cms');
$variables['acquia_cms']['value'] = $extensionInfo['version'];
}

/**
* Implements hook_form_FORM_ID_alter().
*/
function acquia_cms_form_user_login_form_alter(array &$form) {
if (Drupal::config('acquia_cms.settings')->get('user_login_redirection')) {
$form['#submit'][] = '\Drupal\acquia_cms\RedirectHandler::submitForm';
}
}

/**
* Prepares variables for maintenance page templates.
*
* Default template: maintenance-page.html.twig.
*
* @param array $variables
* An associative array containing:
* - content - An array of page content.
*
* @see template_preprocess_maintenance_page()
*/
function acquia_cms_preprocess_maintenance_page(array &$variables) {
$variables['#attached']['library'][] = 'claro/install-page';
$variables['#attached']['library'][] = 'acquia_claro/install-page';
$acquia_cms_path = \Drupal::service('extension.list.module')->getPath('acquia_cms');
$variables['install_page_logo_path'] = '/' . $acquia_cms_path . '/acquia_cms.png';
}
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
],
"require": {
"acquia/acquia-cms-starterkit": "^1.0",
"drupal/acquia_claro": "^1.3.4",
"drupal/acquia_cms_audio": "^1.4",
"drupal/acquia_cms_component": "^1.3",
"drupal/acquia_cms_headless": "^1.3",
Expand Down
Loading