You are here

function synonyms_provider_field_field_name in Synonyms 7

Reconstruct field name from the name of its provider.

This function is inverse of synonyms_provider_field_provider_name().

Parameters

string $provider: Name of the provider whose underlying field should be reconstructed

Return value

string Field name that corresponds to the $provider

See also

synonyms_provider_field_provider_name()

2 calls to synonyms_provider_field_field_name()
AbstractFieldSynonymsBehavior::__construct in synonyms_provider_field/includes/AbstractFieldSynonymsBehavior.class.inc
synonyms_synonyms_fields in ./synonyms.module
Return array of field names that are sources of synonyms.

File

synonyms_provider_field/synonyms_provider_field.module, line 95
Provides synonyms from entity fields.

Code

function synonyms_provider_field_field_name($provider) {
  return drupal_substr($provider, drupal_strlen('synonyms_provider_field_'));
}