restrict_abusive_words.install in Restrict Abusive Words 8
Same filename and directory in other branches
Module install and update functions for the Restrict Abusive Words module.
File
restrict_abusive_words.installView source
<?php
/**
* @file
* Module install and update functions for the Restrict Abusive Words module.
*/
/**
* Implements hook_schema().
*/
function restrict_abusive_words_schema() {
$schema = array();
$schema['restrict_abusive_words'] = array(
'fields' => array(
'id' => array(
'description' => 'The ID of the abusive word.',
'type' => 'serial',
'not null' => TRUE,
),
'words' => array(
'description' => 'Abusive word.',
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array(
'id',
),
);
return $schema;
}
Functions
Name | Description |
---|---|
restrict_abusive_words_schema | Implements hook_schema(). |