You are here

function faqfield_field_schema in FAQ Field 7

Implements hook_field_schema().

This defines the database schema of the faqfield.

File

./faqfield.install, line 12
Install, update, and uninstall functions of faqfield module.

Code

function faqfield_field_schema($field) {
  return array(
    'columns' => array(
      'question' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'translatable' => TRUE,
      ),
      'answer' => array(
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'medium',
        'translatable' => TRUE,
      ),
      'answer_format' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
    ),
  );
}