Last change
on this file since 93 was
61,
checked in by toemon, 16 years ago
|
XOOPSイベント通知の実装 #6
但し現状ではメインコンテンツにイベント通知選択は表示されたない。(ブロックとして表示)
|
File size:
850 bytes
|
Rev | Line | |
---|
[61] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function xpress_notify_info( $category , $item_id ) |
---|
| 4 | { |
---|
| 5 | $db =& Database::getInstance() ; |
---|
| 6 | $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | // $module_handler =& xoops_gethandler( 'module' ) ; |
---|
| 10 | // $module =& $module_handler->getByDirname( $mydirname ) ; |
---|
| 11 | |
---|
| 12 | if( $category == 'global' ) { |
---|
| 13 | $item['name'] = ''; |
---|
| 14 | $item['url'] = XOOPS_URL.'/modules/'.$mydirname . '/wp-admin/edit-comments.php?comment_status=moderated'; |
---|
| 15 | return $item ; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | if( $category == 'category' ) { |
---|
| 19 | // Assume we have a valid cat_id |
---|
| 20 | $item['name'] = ''; |
---|
| 21 | $item['url'] = ''; |
---|
| 22 | |
---|
| 23 | return $item ; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | if( $category == 'author' ) { |
---|
| 27 | // Assume we have a valid cat_id |
---|
| 28 | $item['name'] = ''; |
---|
| 29 | $item['url'] = ''; |
---|
| 30 | return $item ; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | if( $category == 'post' ) { |
---|
| 34 | // Assume we have a valid forum_id |
---|
| 35 | $item['name'] = ''; |
---|
| 36 | $item['url'] = ''; |
---|
| 37 | return $item ; |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | } |
---|
| 41 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.