You are here

function search_api_glossary_entity_property_info in Search API AZ Glossary 7

Same name and namespace in other branches
  1. 7.3 search_api_glossary.module \search_api_glossary_entity_property_info()
  2. 7.2 search_api_glossary.module \search_api_glossary_entity_property_info()

Implements hook_entity_property_info().

See also

entity_entity_property_info()

File

./search_api_glossary.module, line 111
Search api glossary module file.

Code

function search_api_glossary_entity_property_info() {
  $info = array();

  // Add meta-data about the basic node properties.
  $properties =& $info['node']['properties'];
  $properties['title_az_glossary'] = array(
    'label' => t("Title A-Z Glossary"),
    'type' => 'text',
    'description' => t("The A-Z Glossary from title of the node."),
    'getter callback' => 'search_api_glossary_title_getter_callback',
    'schema field' => 'az_title',
    'sanitized' => TRUE,
  );
  return $info;
}