You are here

function patch_manager_field_info in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.install \patch_manager_field_info()

Implements hook_field_info().

3 calls to patch_manager_field_info()
patch_manager_install in ./patch_manager.install
Implements hook_schema().
patch_manager_uninstall in ./patch_manager.install
Implements hook_uninstall().
patch_manager_update_7100 in ./patch_manager.install
Adding field_patch_notes field into database storage.

File

./patch_manager.install, line 52
Install, update and uninstall functions for the Patch manager module.

Code

function patch_manager_field_info() {

  // We are going to return an array of fields.
  $fields = array();

  // patch_notes field
  $fields['field_patch_notes'] = array(
    'translatable' => '0',
    'settings' => array(),
    'field_name' => 'field_patch_notes',
    'type' => 'text_long',
    'active' => '1',
    'locked' => '0',
    'cardinality' => '1',
  );

  // field_patch field
  $fields['field_patch'] = array(
    'translatable' => '0',
    'settings' => array(
      'display_field' => 1,
      'display_default' => 0,
      'uri_scheme' => 'public',
    ),
    'field_name' => 'field_patch',
    'type' => 'file',
    'active' => '1',
    'locked' => '0',
    'cardinality' => '1',
  );

  // field_module field
  $fields['field_module'] = array(
    'translatable' => '0',
    'settings' => array(
      'max_length' => '30',
    ),
    'field_name' => 'field_module',
    'type' => 'text',
    'active' => '1',
    'locked' => '0',
    'cardinality' => '1',
  );

  // field_drupal_issue field
  $fields['field_drupal_issue'] = array(
    'translatable' => '0',
    'settings' => array(
      'max_length' => '10',
    ),
    'field_name' => 'field_drupal_issue',
    'type' => 'text',
    'active' => '1',
    'locked' => '0',
    'cardinality' => '1',
  );

  // Translatables
  // Included for use with string extractors like potx.
  t('Patch notes');
  t('Drupal.org issue number');
  t('Module');
  t('Patch file');
  return $fields;
}