my_date.info
name = My Date Field
description = A Simple My Date Field for Drupal 7
package = public-action fields
core = 7.x
files[] = my_date.module
files[] = my_date.install
my_date.install
<?php
function my_date_field_schema($field = 'my_date') {
return array(
'columns' => array(
'my_date' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'use_today' => array(
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
),
),
);
}