You are here

field_timer.install in Field Timer 7

Same filename and directory in other branches
  1. 7.2 field_timer.install

Install, update and uninstall functions for the Field Timer module.

File

field_timer.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Field Timer module.
 */

/**
 * Implements hook_field_schema().
 */
function field_timer_field_schema($field) {
  if ($field['type'] == 'field_timer') {
    return array(
      'columns' => array(
        'entity_property_name' => array(
          'type' => 'varchar',
          'length' => 100,
          'not null' => FALSE,
        ),
        'timestamp' => array(
          'type' => 'int',
          'not null' => FALSE,
          'unsigned' => TRUE,
        ),
      ),
    );
  }
}

Functions

Namesort descending Description
field_timer_field_schema Implements hook_field_schema().