Implemented the hook_element_info_alter hook