You are here

maxlength.api.php in Maxlength 8

Hooks provided by the maxlength module.

File

maxlength.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the maxlength module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Define additional widget settings.
 *
 * @return array
 *   Additional widget settings.
 */
function hook_maxlength_widget_settings() {
  return [
    'text_textarea_custom_widget' => [
      'maxlength_setting' => TRUE,
      'summary_maxlength_setting' => TRUE,
      'truncate_setting' => TRUE,
    ],
  ];
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_maxlength_widget_settings Define additional widget settings.