Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php |
— | — | @@ -372,4 +372,18 @@ |
373 | 373 | return true; |
374 | 374 | } |
375 | 375 | |
| 376 | + public static function addToAdminLinks( &$admin_links_tree ) { |
| 377 | + $browse_search_section = $admin_links_tree->getSection( wfMsg( 'adminlinks_browsesearch' ) ); |
| 378 | + $sd_row = new ALRow( 'sd' ); |
| 379 | + $sd_row->addItem( ALItem::newFromSpecialPage( 'BrowseData' ) ); |
| 380 | + $sd_row->addItem( ALItem::newFromSpecialPage( 'Filters' ) ); |
| 381 | + $sd_row->addItem( ALItem::newFromSpecialPage( 'CreateFilter' ) ); |
| 382 | + $sd_name = wfMsg( 'specialpages-group-sd_group' ); |
| 383 | + $sd_docu_label = wfMsg( 'adminlinks_documentation', $sd_name ); |
| 384 | + $sd_row->addItem( AlItem::newFromExternalLink( "http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown", $sd_docu_label ) ); |
| 385 | + |
| 386 | + $browse_search_section->addRow( $sd_row ); |
| 387 | + |
| 388 | + return true; |
| 389 | + } |
376 | 390 | } |
Index: trunk/extensions/SemanticDrilldown/SemanticDrilldown.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | $wgAutoloadClasses['SDAppliedFilter'] = $sdgIP . '/includes/SD_AppliedFilter.php'; |
62 | 62 | |
63 | 63 | $wgHooks['smwInitProperties'][] = 'sdfInitProperties'; |
64 | | -$wgHooks['AdminLinks'][] = 'sdfAddToAdminLinks'; |
| 64 | +$wgHooks['AdminLinks'][] = 'SDUtils::addToAdminLinks'; |
65 | 65 | $wgHooks['MagicWordwgVariableIDs'][] = 'SDUtils::addMagicWordVariableIDs'; |
66 | 66 | $wgHooks['LanguageGetMagic'][] = 'SDUtils::addMagicWordLanguage'; |
67 | 67 | $wgHooks['ParserBeforeTidy'][] = 'SDUtils::handleShowAndHide'; |
— | — | @@ -236,18 +236,3 @@ |
237 | 237 | } |
238 | 238 | return true; |
239 | 239 | } |
240 | | - |
241 | | -function sdfAddToAdminLinks( &$admin_links_tree ) { |
242 | | - $browse_search_section = $admin_links_tree->getSection( wfMsg( 'adminlinks_browsesearch' ) ); |
243 | | - $sd_row = new ALRow( 'sd' ); |
244 | | - $sd_row->addItem( ALItem::newFromSpecialPage( 'BrowseData' ) ); |
245 | | - $sd_row->addItem( ALItem::newFromSpecialPage( 'Filters' ) ); |
246 | | - $sd_row->addItem( ALItem::newFromSpecialPage( 'CreateFilter' ) ); |
247 | | - $sd_name = wfMsg( 'specialpages-group-sd_group' ); |
248 | | - $sd_docu_label = wfMsg( 'adminlinks_documentation', $sd_name ); |
249 | | - $sd_row->addItem( AlItem::newFromExternalLink( "http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown", $sd_docu_label ) ); |
250 | | - |
251 | | - $browse_search_section->addRow( $sd_row ); |
252 | | - |
253 | | - return true; |
254 | | -} |