Call method for all events in all DocType

I called a event by hooks file.
this is ok.

doc_events = {
	"*": {
		"on_update": "photography.photography.doctype.sms_alert.sms_alert.check_sms_alert",
        "validate": "photography.photography.doctype.sms_alert.sms_alert.check_sms_alert"
	}
}

But I need call method for all event, I try below but not work.

doc_events = {
	"*": {
		"*": "photography.photography.doctype.sms_alert.sms_alert.check_sms_alert"
	}
}

If anyone know how to call a method for all DocType in all events, please help me.

Why not just add all the events? You can also use the scheduled events in hooks.py if you want it to call the method periodically.

Just hook a validate method. All events like save, submit, cancel internally calls validate method.

yeah but I need to know which method are called ‘on_update’ or ‘after_insert’ etc.
because I set action base on method.
If I use validate then always send second argument as “validate”. So I can’t take action base on method.