Development:Deprecated functions in 2.0
Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.
This page lists the old HTML-outputting functions of pre-2.0 lib/weblib.php and their 2.0 equivalents using $OUTPUT functions.
General notes
The principle of the new rendering API is to let the developer build metadata-rich components that represent HTML elements, but may be rendered in many different ways. A menu component, for example, could be rendered as a <select> element, or as a list of radio buttons or check boxes.
The following functions have been arranged in alphabetical order, although some of them are very closely related to each other.
Functions to migrate
button_to_popup_window
choose_from_radio
close_window_button
continue
doc_link
helpbutton
link_to_popup_window
notice_yesno
notify
page_doc_link
popup_form
print_arrow
print_box*
print_checkbox
print_container*
print_date_selector
print_header
print_header_with_help
print_heading
print_heading_block
print_headline
print_paging_bar
print_side_block
print_single_button
print_spacer
print_table
print_textarea
print_textfield
print_time_selector
print_user_picture
update_course_button
update_module_button
update_tag_button
Non-supported functions
These functions have been completely dropped in 2.0, most likely because they were used very little or not at all. All calls to these functions in core should have been replaced.