backdrop-contrib / examples

Examples for Developers
GNU General Public License v2.0
7 stars 9 forks source link

Do not use deprecated functions #37

Closed avpaderno closed 1 year ago

avpaderno commented 1 year ago

Some functions, like the following one, are calling functions that are now deprecated.

function menu_example_user_page_title($account) {
  return is_object($account) ? t("@name's account", array('@name' => format_username($account))) : '';
}

The code should be changed to avoid using deprecated functions.

avpaderno commented 1 year ago

The PR replaces all the deprecated functions, except node_types_rebuild() for which Backdrop does not have any replacement, and for which the documentation page says:

Backdrop no longer needs to "rebuild" its node types, which previously were synced between the code and database in Drupal 7. In Backdrop, all node types are always stored in config.