You are here

function biblio_entity_property_info_alter in Bibliography Module 7.2

Implements hook_entity_property_info_alter().

File

./biblio.module, line 3714

Code

function biblio_entity_property_info_alter(&$info) {
  $properties =& $info['biblio']['properties'];
  $properties['created'] = array(
    'label' => t("Date created"),
    'type' => 'date',
    'description' => t("The date the biblio was added."),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'schema field' => 'created',
  );
  $properties['changed'] = array(
    'label' => t("Date changed"),
    'type' => 'date',
    'description' => t("The date the biblio was most recently changed/edited."),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'schema field' => 'changed',
  );
  $properties['uid'] = array(
    'label' => t("Author"),
    'type' => 'user',
    'description' => t("The creator of the biblio entity."),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'required' => TRUE,
    'schema field' => 'uid',
  );
  $properties['biblio_sort_title'] = array(
    'label' => t("Sort Title"),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'schema field' => 'biblio_sort_title',
  );
  $properties =& $info['biblio_contributor']['properties'];
  $properties['created'] = array(
    'label' => t("Date created"),
    'type' => 'date',
    'description' => t("The date the contribtuor was added."),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'schema field' => 'created',
  );
  $properties['changed'] = array(
    'label' => t("Date changed"),
    'type' => 'date',
    'description' => t("The date the contributor was most recently changed/edited."),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'schema field' => 'changed',
  );
  $properties['md5'] = array(
    'label' => t("MD5"),
    'description' => t("MD5 of the contributor. Used for resolving duplicates"),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'edit all biblio entries',
    'schema field' => 'md5',
  );
}