You are here

function location_cck_field_schema in Location 7.5

Same name and namespace in other branches
  1. 7.3 contrib/location_cck/location_cck.module \location_cck_field_schema()
  2. 7.4 contrib/location_cck/location_cck.module \location_cck_field_schema()

Implement hook_field_schema().

File

contrib/location_cck/location_cck.module, line 133
Defines location field type.

Code

function location_cck_field_schema($field) {
  switch ($field['type']) {
    case 'location':
      $columns = array(
        'lid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => FALSE,
        ),
      );
      break;
  }
  return array(
    'columns' => $columns,
    'indexes' => array(
      'lid' => array(
        'lid',
      ),
    ),
  );
}