You are here

function strip_utf8mb4_menu in Strip 4-byte UTF8 7

Implements hook_menu().

File

./strip_utf8mb4.module, line 11
Allow users to Strip 4-byte UTF8 characters. overly long 2 byte sequences, as well as characters above U+10000, and reject overly long 3 byte sequences and UTF-16

Code

function strip_utf8mb4_menu() {
  $items = array();
  $items['admin/config/content/strip_utf8mb4'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'Strip 4-byte UTF8',
    'description' => t('Configure text fields to reject overly long 2 byte sequences, as well as characters above U+10000, reject overly long 3 byte sequences and UTF-16.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'strip_utf8mb4_configuration_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'strip_utf8mb4.admin.inc',
  );
  return $items;
}