First of all, I've never posted before, so let me know if my etiquite is off...
I don't know js, but managed to figure this out via copying and pasting;) In 3 steps:
1)I made a file called small.css comprised of
html {
font-size: 90%;
}
2)in fontsize.module in fontsize_menu I added
''."\n".
right before the script language line. Here's my code(I have a larger.css file as well)
/**
* Implementation of hook_menu()
*/
function fontsize_menu() {
drupal_set_html_head(''."\n".
''."\n".
''."\n".
''."\n".
'');
}
3)in fontsize_block in fontsize.module I added
'A'
after the corresponding spot for normal. Here's what I did(once again, I have a larger.css file)
/**
* Implementation of hook_block()
*/
function fontsize_block($op = 'list', $delta = 0) {
if ($op == 'list') {
$blocks[0]['info'] = 'Change text size';
return $blocks;
}
elseif ($op == 'view') {
switch($delta) {
case 0:
$block['subject'] = t('Change text size');
$block['content'] = theme('links', array(
'A',
'A',
'A',
'A'
),' ');
return $block;
}
}
}