You are here

function i18n_node_token_info in Internationalization 7

Implements hook_token_info().

File

i18n_node/i18n_node.tokens.inc, line 11
Builds placeholder replacement tokens for content types.

Code

function i18n_node_token_info() {
  $content_type['i18n-name'] = array(
    'name' => t("Name (localized)"),
    'description' => t("The name of the content type."),
  );
  $content_type['i18n-description'] = array(
    'name' => t("Description (localized)"),
    'description' => t("The optional description of the content type."),
  );
  return array(
    'tokens' => array(
      'content-type' => $content_type,
    ),
  );
}