You are here

function hook_entityreference_prepopulate_providers_info in Entityreference prepopulate 7

Register a new prepopulate provider.

Return value

Array of providers keyed by the provider name, and the following as value:

  • title: The title of the provider.
  • description: The description of the provider.
  • callback: The function that will be called to get the values.
  • disabled: (optional), determines if the provider should be disabled.
1 invocation of hook_entityreference_prepopulate_providers_info()
entityreference_prepopulate_providers_info in ./entityreference_prepopulate.module
Return array of providers.

File

./entityreference_prepopulate.api.php, line 24
Hooks provided by the Entity reference prepopulate module.

Code

function hook_entityreference_prepopulate_providers_info() {
  return array(
    'url' => array(
      'title' => t('URL'),
      'description' => t('Prepopulate from URL'),
      'callback' => 'entityreference_prepopulate_get_values_from_url',
    ),
  );
}