You are here

function likebtn_field_schema in Like Button 8.2

Same name and namespace in other branches
  1. 7 likebtn.install \likebtn_field_schema()

Implements hook_field_schema().

File

./likebtn.install, line 62
Install, update and uninstall functions for the LikeBtn module.

Code

function likebtn_field_schema($field) {
  return array(
    'columns' => array(
      'likebtn_likes' => array(
        'type' => 'int',
        'size' => 'normal',
        'not null' => FALSE,
        'sortable' => TRUE,
        'default' => 0,
        'description' => 'Likes count',
      ),
      'likebtn_dislikes' => array(
        'type' => 'int',
        'size' => 'normal',
        'not null' => FALSE,
        'sortable' => TRUE,
        'default' => 0,
        'description' => 'Dislikes count',
      ),
      'likebtn_likes_minus_dislikes' => array(
        'type' => 'int',
        'size' => 'normal',
        'not null' => FALSE,
        'sortable' => TRUE,
        'default' => 0,
        'description' => 'Likes minus dislikes',
      ),
    ),
  );
}