You are here

function _mass_contact_fields in Mass Contact 7

Returns a structured array, defining the fields created by this node type.

2 calls to _mass_contact_fields()
mass_contact_install in ./mass_contact.install
Implements hook_install().
mass_contact_uninstall in ./mass_contact.install
Implements hook_uninstall().

File

./mass_contact.install, line 124
Install, update and uninstall functions for the Mass Contact module.

Code

function _mass_contact_fields() {
  return array(
    'field_mass_contact_from' => array(
      'field_name' => 'field_mass_contact_from',
      'type' => 'text',
    ),
    'field_mass_contact_category' => array(
      'field_name' => 'field_mass_contact_category',
      'type' => 'text',
    ),
    'field_mass_contact_to' => array(
      'field_name' => 'field_mass_contact_to',
      'type' => 'text',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    ),
    'field_mass_contact_bcc' => array(
      'field_name' => 'field_mass_contact_bcc',
      'type' => 'text',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    ),
    'field_mass_contact_headers' => array(
      'field_name' => 'field_mass_contact_headers',
      'type' => 'text_long',
    ),
    'field_mass_contact_result' => array(
      'field_name' => 'field_mass_contact_result',
      'type' => 'text_long',
    ),
    'field_mass_contact_attachments' => array(
      'field_name' => 'field_mass_contact_attachments',
      'type' => 'file',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    ),
  );
}