Moving function and adding awareness of {USER} to notification conditions

Conflicts:
	modules/formulize/include/functions.php