Declare Qdisabled_command_function instead of Qdisabled_command_hook.