Skip to content

Instantly share code, notes, and snippets.

@chebanenko
Created February 16, 2016 16:04
Show Gist options
  • Save chebanenko/f9fe7eb2ef63515a0900 to your computer and use it in GitHub Desktop.
Save chebanenko/f9fe7eb2ef63515a0900 to your computer and use it in GitHub Desktop.
notify
if (IsModuleInstalled("im") && CModule::IncludeModule("im"))
{
$arMessageFields = array(
"TO_USER_ID" => 9,
"FROM_USER_ID" => 8,
"NOTIFY_TYPE" => IM_NOTIFY_FROM,
"NOTIFY_MODULE" => "blog",
"NOTIFY_TAG" => "",
"NOTIFY_MESSAGE" => 'FUCK IT ALL',
"NOTIFY_MESSAGE_OUT" => 'FUCK IT ALL'
);
$res = CIMNotify::Add($arMessageFields);
var_dump($res);
}
else
{
echo "no module";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment