function textsize_jq_plugin in Text Size 6
Note: By default the "jQuery plugins" module is required. You can also download the plugin from http://plugins.jquery.com/project/Cookie in the modul textsize, uncomment the code below and delete the code:
Delete the line: jquery_plugin_add('cookie');
Uncomment example: drupal_add_js(drupal_get_path('module', 'textsize') .'/jquery.cookie.js');
1 call to textsize_jq_plugin()
- textsize_init in ./
textsize.module - Implement hook_init().
File
- ./
textsize.module, line 378 - Display a text size changer on the page for a better web accessibility.
Code
function textsize_jq_plugin() {
$link_jquery_plugin = l(t('jQuery plugins'), 'http://drupal.org/project/jquery_plugin');
if (function_exists('jquery_plugin_add')) {
jquery_plugin_add('cookie');
}
else {
drupal_set_message(t('Drupal\'s %link_jquery_plugin Module Required for Text Size functionality.', array(
'%link_jquery_plugin' => $link_jquery_plugin,
)), 'error');
}
}