Add implementation of hook_entity_info_alter() to domain

Created on 3 February 2012, over 13 years ago
Updated 2 May 2025, 2 months ago

Should Domain make it's information available through hook_entity_info_alter() ? This makes domain information accessible to Rules, Search API and other modules that use entity API data.

Are changes like this ruled out for 7.x-2.x?

I'd need to reed the Entity API docs more closely before submitting a patch. I think it wouldn't need to be much more than this:

/**
 * Implements hook_entity_property_info_alter().
 *
 * Adding domain properties.
 */
function domain_entity_property_info_alter(&$info) {
  $properties = &$info['node']['properties'];

  $properties['domain_source'] = array(
    'label' => t('Domain Source'),
    'description' => t(''),
    'type' => 'integer',
  );

  $properties['domains'] = array(
    'label' => t('Domains'),
    'description' => t(''),
    'type' => 'list<integer>',
  );
}
✨ Feature request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States stevector Minneapolis, MN

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024