read_body_menu_top src/read_body.php hook_func
read_body_menu_bottom src/read_body.php do_hook
read_body_header_right src/read_body.php do_hook
- html_top src/read_body.php do_hook
read_body_top src/read_body.php do_hook
read_body_bottom src/read_body.php do_hook
- html_bottom src/read_body.php do_hook
login_before src/redirect.php do_hook
login_verified src/redirect.php do_hook
generic_header src/right_main.php do_hook
function demo_identities_button(&$args)
{
return '<input type="submit" name="demo_button_' . $args[1]
- . '" value="Press Me">';
+ . '" value="Press Me" />';
}
setting in the user's preferences
caption The text that prefaces this setting on the preferences
page
+ trailing_text Text that follows a text input or select list input on
+ the preferences page (useful for indicating units,
+ meanings of special values, etc.)
type The type of INPUT element, which should be one of:
SMOPT_TYPE_STRING String/text input
SMOPT_TYPE_STRLIST Select list input
should always set "optpage" as a POST or GET variable with a string that
uniquely identifies your plugin:
- <input type="hidden" name="optpage" value="plugin_demo">
+ <input type="hidden" name="optpage" value="plugin_demo" />
Now in your demo_save_options_do() function, do something like this:
So, even in the HTML segments of your plugin files, you need to do this:
- <input type="submit" value="<?php echo _("Submit") ?>">
+ <input type="submit" value="<?php echo _("Submit"); ?>" />
You can put any text you want inside of the quotes (you MUST use double
quotes!), including HTML tags, etc. What you should think carefully