You are here

function editor_note_entity_property_info in Editor Notes 7

Implements hook_entity_property_info().

File

./editor_note.module, line 174
Main functionality for Editor Notes module.

Code

function editor_note_entity_property_info() {
  $properties = array(
    'id' => array(
      'type' => 'integer',
      'label' => t('Editor Note ID'),
      'description' => t('Unique editor note ID.'),
      'schema field' => 'id',
    ),
    'note' => array(
      'type' => 'text',
      'label' => t('Editor Note'),
      'description' => t('Content of editor note.'),
      'schema field' => 'note',
    ),
    'entity_type' => array(
      'type' => 'text',
      'label' => t('Entity Type'),
      'description' => t('The entity type editor note is attached to.'),
      'schema field' => 'entity_type',
    ),
    'bundle' => array(
      'type' => 'text',
      'label' => t('Bundle'),
      'description' => t('The bundle of the entity editor note is attached to.'),
      'schema field' => 'bundle',
    ),
    'field_name' => array(
      'type' => 'text',
      'label' => t('Field Name'),
      'description' => t('The field name of the field containing editor note.'),
      'schema field' => 'field_name',
    ),
    'entity_id' => array(
      'type' => 'integer',
      'label' => t('Entity ID'),
      'description' => t('The entity id editor note is attached to.'),
      'schema field' => 'entity_id',
    ),
    'revision_id' => array(
      'type' => 'integer',
      'label' => t('Revision ID'),
      'description' => t('The entity revision editor note is attached to.'),
      'schema field' => 'revision_id',
    ),
    'uid' => array(
      'type' => 'integer',
      'label' => t('Updated by UID'),
      'description' => t('The unique ID of the user who last updated editor note.'),
      'schema field' => 'uid',
    ),
    'created' => array(
      'type' => 'date',
      'label' => t('Created'),
      'description' => t('The timestamp that the note was created.'),
      'schema field' => 'created',
    ),
    'changed' => array(
      'type' => 'date',
      'label' => t('Changed'),
      'description' => t('The timestamp that the note was last updated.'),
      'schema field' => 'changed',
    ),
    'text_format' => array(
      'type' => 'text',
      'label' => t('Text Format'),
      'description' => t('The text format of an editor note.'),
      'schema field' => 'text_format',
    ),
  );
  $info['editor_note']['properties'] = $properties;
  return $info;
}