The solution to

includes/token_help.inc:    // TODO: Why can't theme_token_help() be found in this module?!?!

is that token help is now generated completely differently. See #945066: Use token tree UI for D7

CommentFileSizeAuthor
#2 signup_token_tree_btmash_1191324_2.patch680 bytesbtmash

Comments

magnusk’s picture

The following seems to work in includes/token_help.inc:

  $form[$element_name]['help_text'] = _signup_build_token_help();
}

function _signup_build_token_help() {
  static $help = NULL;
  if ( empty($help) && module_exists('token') ) {
    $help = array(
      '#theme' => 'token_tree',
      '#token_types' => array('signup', 'node', 'global'),
    );
  }
  return $help;
}
btmash’s picture

Status: Active » Needs review
StatusFileSize
new680 bytes

A slight modification in patch format.

sgabe’s picture

Title: Theme key "token_help" not found. » Use token tree UI to show replacement tokens
Component: Code » Email
Status: Needs review » Reviewed & tested by the community

The patch in #2 applies fine and fixes the issue.

sgabe’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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