You are here

function gathercontent_entity_property_info in GatherContent 7.3

Implements hook_entity_property_info().

File

./gathercontent.module, line 198

Code

function gathercontent_entity_property_info() {
  $info = array();
  $info['gathercontent_mapping']['properties']['id'] = array(
    'label' => t('Mapping ID'),
    'description' => t('The ID of the mapping.'),
    'type' => 'integer',
    'schema field' => 'id',
  );
  $info['gathercontent_mapping']['properties']['gathercontent_project_id'] = array(
    'label' => t('GC Project ID'),
    'description' => t('The ID of the project in GatherContent.'),
    'type' => 'integer',
    'schema field' => 'gathercontent_project_id',
  );
  $info['gathercontent_mapping']['properties']['gathercontent_project'] = array(
    'label' => t('GC Project'),
    'description' => t('Project name in GatherContent.'),
    'type' => 'text',
    'schema field' => 'gathercontent_project',
  );
  $info['gathercontent_mapping']['properties']['gathercontent_template_id'] = array(
    'label' => t('GC Template ID'),
    'description' => t('The ID of template in GatherContent.'),
    'type' => 'integer',
    'schema field' => 'gathercontent_template_id',
  );
  $info['gathercontent_mapping']['properties']['gathercontent_template'] = array(
    'label' => t('GC Template'),
    'description' => t('Name of template in GatherContent.'),
    'type' => 'text',
    'schema field' => 'gathercontent_template',
  );
  $info['gathercontent_mapping']['properties']['content_type'] = array(
    'label' => t('Content type machine name'),
    'description' => t('Content type machine name.'),
    'type' => 'token',
    'schema field' => 'content_type',
  );
  $info['gathercontent_mapping']['properties']['content_type_name'] = array(
    'label' => t('Content type name'),
    'description' => t('Content type human-readable name.'),
    'type' => 'text',
    'computed' => TRUE,
    'getter callback' => 'entity_property_verbatim_set',
    'options list' => 'node_type_get_names',
    'schema field' => 'content_type',
  );
  $info['gathercontent_mapping']['properties']['created'] = array(
    'label' => t('Created'),
    'description' => t('Timestamp of mapping creation'),
    'type' => 'date',
    'getter callback' => 'entity_property_verbatim_set',
    'schema field' => 'created',
  );
  $info['gathercontent_mapping']['properties']['updated_drupal'] = array(
    'label' => t('Updated (Drupal)'),
    'description' => t('Timestamp of mapping update in Drupal'),
    'type' => 'date',
    'schema field' => 'updated_drupal',
  );
  $info['node']['properties']['gathercontent_mapping_id'] = array(
    'label' => t("GC Mapping ID"),
    'type' => 'integer',
    'description' => t("The ID of created GatherContent mapping"),
    'getter callback' => 'entity_property_verbatim_get',
    'setter callback' => 'entity_property_verbatim_set',
  );
  $info['node']['properties']['gathercontent_id'] = array(
    'label' => t("GC ID"),
    'type' => 'integer',
    'description' => t("The ID of content in GatherContent"),
    'getter callback' => 'entity_property_verbatim_get',
    'setter callback' => 'entity_property_verbatim_set',
  );
  $info['node']['properties']['gathercontent_import_status'] = array(
    'label' => t("GC Import status"),
    'type' => 'text',
    'description' => t("Status of import from GatherContent"),
  );
  $info['file']['properties']['gathercontent_id'] = array(
    'label' => t("GC ID"),
    'type' => 'integer',
    'description' => t("The ID of file in GatherContent"),
  );
  $info['gathercontent_operation']['properties']['uuid'] = array(
    'label' => t('Operation UUID'),
    'type' => 'text',
    'schema field' => 'uuid',
  );
  $info['gathercontent_operation']['properties']['type'] = array(
    'label' => t('Operation Type'),
    'type' => 'text',
    'schema field' => 'type',
  );
  $info['gathercontent_operation_item']['properties']['id'] = array(
    'label' => t('Operation Item ID'),
    'type' => 'integer',
    'schema field' => 'id',
  );
  $info['gathercontent_operation_item']['properties']['operation_uuid'] = array(
    'label' => t('Operation UUID'),
    'type' => 'text',
    'schema field' => 'operation_uuid',
  );
  $info['gathercontent_operation_item']['properties']['item_status'] = array(
    'label' => t('Operation Item Status'),
    'type' => 'text',
    'schema field' => 'item_status',
  );
  $info['gathercontent_operation_item']['properties']['item_status_color'] = array(
    'label' => t('Operation Item Status Color'),
    'type' => 'text',
    'schema field' => 'item_status_color',
  );
  $info['gathercontent_operation_item']['properties']['item_name'] = array(
    'label' => t('Operation Item Name'),
    'type' => 'text',
    'schema field' => 'item_name',
  );
  $info['gathercontent_operation_item']['properties']['template_name'] = array(
    'label' => t('Operation Item Template Name'),
    'type' => 'text',
    'schema field' => 'template_name',
  );
  $info['gathercontent_operation_item']['properties']['status'] = array(
    'label' => t('Operation Item Operation Status'),
    'type' => 'text',
    'schema field' => 'status',
  );
  $info['gathercontent_operation_item']['properties']['gathercontent_id'] = array(
    'label' => t('Operation Item GC ID'),
    'type' => 'integer',
    'schema field' => 'gathercontent_id',
  );
  $info['gathercontent_operation_item']['properties']['nid'] = array(
    'label' => t('Operation Item NID'),
    'type' => 'integer',
    'schema field' => 'nid',
  );
  return $info;
}