| 1 |
<?php |
<?php |
| 2 |
// $Id: og_notifications.module,v 1.24.4.5 2009/04/16 04:51:51 karthik Exp $ |
// $Id: og_notifications.module,v 1.24.4.6 2009/04/18 05:49:13 karthik Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 793 |
* see if the message object being passed is an OG notification. |
* see if the message object being passed is an OG notification. |
| 794 |
* |
* |
| 795 |
* @param Object $message |
* @param Object $message |
| 796 |
* The message object |
* The message object. |
| 797 |
* @return Boolean |
* @return Integer |
| 798 |
* True if this is an OG notification message. False, otherwise ... |
* The subscription ID if this is an OG notification message. 0, |
| 799 |
|
* otherwise ... |
| 800 |
*/ |
*/ |
| 801 |
function _og_notification_check_message($message) { |
function _og_notification_check_message($message) { |
| 802 |
$sid = 0; |
$sid = 0; |
| 811 |
} |
} |
| 812 |
} |
} |
| 813 |
|
|
| 814 |
return $sid > 0; |
return $sid > 0 ? $sid : 0; |
| 815 |
} |
} |