You are here

function opigno_field_schema in Opigno 7

Implements hook_field_schema().

File

./opigno.install, line 66
Contains install instructions and logic

Code

function opigno_field_schema($field) {
  if ($field['type'] == 'opigno_tools') {
    return array(
      'columns' => array(
        'tool' => array(
          'type' => 'varchar',
          'length' => 50,
          'not null' => TRUE,
        ),
      ),
      'indexes' => array(
        'tool' => array(
          'tool',
        ),
      ),
    );
  }
}