How can I programmatically override the title tag from within custom module?
See this question and answer. In short, I think your might be looking for something like hook_preprocess_page().

function mymodule_preprocess_page(&amp;$variables) {
  $variables['head_title'] = t("The new HTML title.");
}