You are here

function asset_field_settings in Asset 6

Same name in this branch
  1. 6 modules/asset_content.inc \asset_field_settings()
  2. 6 inc/modules/asset_content.inc \asset_field_settings()
Same name and namespace in other branches
  1. 5.2 modules/asset_content.inc \asset_field_settings()
  2. 5 modules/asset_content.inc \asset_field_settings()

Implementation of cck hook_field_settings().

File

modules/asset_content.inc, line 15

Code

function asset_field_settings($op, $field) {
  switch ($op) {
    case 'database columns':
      return array(
        'aid' => array(
          'type' => 'int',
          'length' => 10,
          'unsigned' => TRUE,
          'not null' => TRUE,
          'default' => 0,
        ),
        'options' => array(
          'type' => 'longtext',
          'not null' => TRUE,
          'default' => "''",
        ),
        'caption' => array(
          'type' => 'longtext',
          'not null' => TRUE,
          'default' => "''",
        ),
        'copyright' => array(
          'type' => 'longtext',
          'not null' => TRUE,
          'default' => "''",
        ),
      );
  }
}