Skip to content

Instantly share code, notes, and snippets.

@shannah
Created April 14, 2014 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shannah/10683980 to your computer and use it in GitHub Desktop.
Save shannah/10683980 to your computer and use it in GitHub Desktop.
<?php
class tables_mytable {
function afterSave(Dataface_Record $record){
if ( $record->val('status') === 'Broken' ){
mail(ADMIN_EMAIL, 'Something is broken', '...');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment