You are here

db_maintenance.admin.inc in DB Maintenance 7.2

Same filename and directory in other branches
  1. 8.2 db_maintenance.admin.inc
  2. 7 db_maintenance.admin.inc

Module db_maintenance admin section.

File

db_maintenance.admin.inc
View source
<?php

/**
 * @file
 * Module db_maintenance admin section.
 */
use Drupal\db_maintenance\Module\Hook\AdminHookHandler;

/**
 * Administration settings.
 *
 * Options: log each optimization, multi-select list of tables to optimize.
 *
 * @return array
 *   An array containing form items to place on the module settings page.
 */
function db_maintenance_admin_settings() {
  return AdminHookHandler::hookAdminSettings();
}

/**
 * Validation for the administrative settings form.
 *
 * @param object $form
 *   An associative array containing the structure of the form.
 * @param object $form_state
 *   A keyed array containing the current state of the form.
 */
function db_maintenance_admin_settings_validate($form, &$form_state) {
  AdminHookHandler::hookAdminSettingsValidate($form, $form_state);
}

Functions

Namesort descending Description
db_maintenance_admin_settings Administration settings.
db_maintenance_admin_settings_validate Validation for the administrative settings form.