You are here

function imceimage_field_settings in Imce CCK Image 6.2

Same name and namespace in other branches
  1. 6 imceimage.module \imceimage_field_settings()

Implements hook_field_settings()

File

./imceimage.module, line 66

Code

function imceimage_field_settings($op, $field) {
  switch ($op) {
    case 'form':
      $form = array();
      return $form;
    case 'save':
      return 'imceimage_file_types';
    case 'database columns':
      $columns = array(
        'imceimage_path' => array(
          'type' => 'char',
          'length' => 255,
          'not null' => FALSE,
          'default' => "",
        ),
        'imceimage_width' => array(
          'type' => 'int',
          'not null' => TRUE,
          'default' => "0",
        ),
        'imceimage_height' => array(
          'type' => 'int',
          'not null' => TRUE,
          'default' => "0",
        ),
        'imceimage_alt' => array(
          'type' => 'text',
        ),
        'imceimage_title' => array(
          'type' => 'text',
        ),
      );
      return $columns;
  }
}