Hi guys,
I'm getting the following warning in the status report page under the Token section.

The following token types are not defined but have tokens
$info['types']['registration']

Do you have any idea if it's a bad thing or if I can ignore it ?
Do I miss something in order to fix that ?

Please let me know.
Thx, bye Kess.

Comments

peteruithoven’s picture

Looking at the hook_token_info documentation, I changed the registration_token_info function of registration.module to:

/**
 * Implement hook_token_info().
 */
function registration_token_info() {
	$type = array(
    'name' => t('Registration'), 
    'description' => t('Tokens related to Registration.')
  );
  $registration['entity'] = array(
    'name' => t("Registration Host Entity"),
    'description' => t("The host entity for the registration."),
  );
  return array(
    'types' => array('registration'=>$type),
    'tokens' => array('registration' => $registration),
  );
}
peteruithoven’s picture

Looking at the hook_token_info documentation, I changed the registration_token_info function of registration.module to:

/**
 * Implement hook_token_info().
 */
function registration_token_info() {
	$type = array(
    'name' => t('Registration'), 
    'description' => t('Tokens related to Registration.')
  );
  $registration['entity'] = array(
    'name' => t("Registration Host Entity"),
    'description' => t("The host entity for the registration."),
  );
  return array(
    'types' => array('registration'=>$type),
    'tokens' => array('registration' => $registration),
  );
}
levelos’s picture

Status: Active » Fixed

Thanks folks, something along these lines committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

The following token types are not defined but have tokens $info['types']['registration']

  • levelos committed b3ac95a on 7.x-1.x, panels, any-entity, slots, integrations, hold_state
    #1814174: Fix incomplete hook_token_info() implementation.