Replace hook_element_info by hook_element_info_alter.