Skip to content

Instantly share code, notes, and snippets.

@mfrost503
Created October 9, 2012 15:35
Show Gist options
  • Save mfrost503/3859572 to your computer and use it in GitHub Desktop.
Save mfrost503/3859572 to your computer and use it in GitHub Desktop.
Account Logic Hook
<?php
/**
* This account hook would be run before save
**/
class AccountHook
{
public function setDBAName($bean,$event,$arguments)
{
$bean->dba_c = $bean->name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment