How to create hook for altering every node form?
/**
 * Implements hook_form_BASE_FORM_ID_alter().
 */
function MYMODULE_form_node_form_alter(&amp;$form, &amp;$form_state) {
  // Do stuff.
}

It could be that it didn't work because you have to clear the cache after adding the hook.