function fp_render_button
Search API
| 7.x theme.inc | fp_render_button($title, $on_click, $extra_class = "") |
| 6.x theme.inc | fp_render_button($title, $on_click, $extra_class = "") |
| 5.x theme.inc | fp_render_button($title, $on_click, $bool_padd = true, $style = "", $extra_class = "") |
Returns the HTML to draw a pretty button.
11 calls to fp_render_button()
- admin.degrees.inc in modules/
admin/ admin.degrees.inc - admin_display_degrees_popup_add_group2 in modules/
admin/ admin.degrees.inc - admin_edit_degree_form in modules/
admin/ admin.degrees.inc - Meant to replace the old-fashioned display_edit_degree function...
- advise.module in modules/
advise/ advise.module - advise_what_if_selection_form in modules/
advise/ advise.module
File
- includes/
theme.inc, line 1913
Code
function fp_render_button($title, $on_click, $extra_class = "") {
// we want to add on a variable-name-friendly version of the title to extra_class.
$extra_class .= " fp-render-button-" . fp_get_machine_readable(strtolower($title));
$rtn = "<button class='fp-render-button $extra_class' onClick='$on_click'>$title</button>";
return $rtn;
}
