Accounts to all associated Contacts

Accounts to all associated Contacts

Hi, 

Im looking at updating some fields I have within both the accounts and contacts module, so that whenever an account is editted it will update all the associated contacts for that account. I've tried to see if I can do this via a workflow and dont want to go for a plugin/extension just yet. 

Is this possible with a custom function, can I have some basic code whereby I can then fill in the apis accordingly please?

Thanks