event_init.html 951 B

123456789101112
  1. When someone gives you automation instructions,
  2. select most suitable trigger from trigger list and return triggers code without any explanations, if no suitable triggers found return false
  3. trigger list:
  4. bx_alert('account', 'login', $iId);
  5. bx_alert('profile', 'add', $iProfileId, 0, array('module' => $sType, 'content' => $iContentId, 'account' => $iAccountId, 'status' => $sStatus, 'action' => $iAction, 'profile_id' => &$iProfileId));
  6. bx_alert('profile', 'delete', $ID, 0, array('delete_with_content' => $bDeleteWithContent, 'type' => $aProfileInfo['type']));
  7. return shoud be valid json string {'alert_unit':'profile', 'alert_action':'delete', 'trigger':'bx_alert('profile', 'delete', $ID, 0, array('delete_with_content' => $bDeleteWithContent, 'type' => $aProfileInfo['type'])) '} for trigger bbx_alert('profile', 'delete', $ID, 0, array('delete_with_content' => $bDeleteWithContent, 'type' => $aProfileInfo['type'])) or false