You are here

workflowfield.install in Workflow 7

Same filename and directory in other branches
  1. 7.2 workflow_field/workflowfield.install

Install, update and uninstall functions for the list module.

File

workflow_field/workflowfield.install
View source
<?php

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

/**
 * Implements hook_field_schema().
 * This schema is copied from workflow.install, $schema['workflow_node'] .
 */
function workflowfield_field_schema($field) {

  //$schema['workflow_node'] = array(

  //    'fields' => array(
  //      'nid' => array(
  //        'description' => 'The {node}.nid this record is for.',
  //        'type' => 'int',
  //        'unsigned' => TRUE,
  //        'not null' => TRUE,
  //        'default' => 0,
  //        'disp-width' => '10',
  //      ),
  //      'sid' => array(
  $columns = array(
    'value' => array(
      'description' => 'The {workflow_states}.sid that this node is currently in.',
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
      'disp-width' => '10',
    ),
  );
  return array(
    'columns' => $columns,
    //    'primary key' => array('nid'),
    //    'indexes' => array(
    //      'nid' => array('nid', 'sid'),
    //    ),
    'indexes' => array(
      'value' => array(
        'value',
      ),
    ),
  );
}

Functions

Namesort descending Description
workflowfield_field_schema Implements hook_field_schema(). This schema is copied from workflow.install, $schema['workflow_node'] .