You are here

function token_custom_help in Custom Tokens 7

Same name and namespace in other branches
  1. 7.2 token_custom.module \token_custom_help()

Implementation of hook_help().

File

./token_custom.module, line 15
It gives the user the ability to create custom tokens using PHP code for specific replacements that can improve other modules relying on the token Drupal 7 core API.

Code

function token_custom_help($path, $arg) {
  switch ($path) {
    case 'admin/help#token_custom':
      $output = '<p>' . t('This allows you to create custom tokens for use throughtout the site using the <a href=\'@admin_url\'>administration pages</a>', array(
        '@admin_url' => url('admin/structure/token-custom'),
      )) . '</p>';
      $output .= '<p>' . t('Tokens can be created using markup or PHP and have access to context related objects.') . '</p>';
      return $output;
  }
}