function twitter_include_token_fields in Twitter 6.4
Same name and namespace in other branches
- 6.5 twitter_post/twitter_post.module \twitter_include_token_fields()
- 6.3 twitter_post/twitter_post.module \twitter_include_token_fields()
Add token help fields to the passed form.
Parameters
$form: A Drupal Forms API form.
2 calls to twitter_include_token_fields()
- twitter_post_admin_settings in twitter_post/
twitter_post.pages.inc - Settings form callback
- twitter_post_form_alter in twitter_post/
twitter_post.module - Implementation of hook_form_alter().
File
- twitter_post/
twitter_post.module, line 261 - Main hooks for twitter post module
Code
function twitter_include_token_fields(&$form) {
if (module_exists('token')) {
$form['twitter']['token_help'] = array(
'#title' => t('Replacement patterns'),
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => t('Prefer raw-text replacements for text to avoid problems with HTML entities!'),
);
$form['twitter']['token_help']['help'] = array(
'#value' => theme('token_help', 'node'),
);
}
}