Custom php for civicrm