gruffen commited on 2011-08-01 14:51:06
Showing 3 changed files, with 18 additions and 1 deletions.
... | ... |
@@ -389,6 +389,7 @@ function shd_modify_display_options($return_config) |
389 | 389 |
$context['settings_title'] = $txt['shd_admin_options_display']; |
390 | 390 |
$context['settings_icon'] = 'details.png'; |
391 | 391 |
|
392 |
+ call_integration_hook('shd_hook_admin_display', array(&$config_vars, $return_config)); |
|
392 | 393 |
return $config_vars; |
393 | 394 |
} |
394 | 395 |
|
... | ... |
@@ -453,6 +454,7 @@ function shd_modify_posting_options($return_config) |
453 | 454 |
document.getElementById("shd_bbc_dt_dd").style.display = state ? "" : "none"; |
454 | 455 |
}'; |
455 | 456 |
|
457 |
+ call_integration_hook('shd_hook_admin_posting', array(&$config_vars, $return_config)); |
|
456 | 458 |
return $config_vars; |
457 | 459 |
} |
458 | 460 |
|
... | ... |
@@ -494,6 +496,7 @@ function shd_modify_admin_options($return_config) |
494 | 496 |
$context['settings_title'] = $txt['shd_admin_options_admin']; |
495 | 497 |
$context['settings_icon'] = 'admin.png'; |
496 | 498 |
|
499 |
+ call_integration_hook('shd_hook_admin_admin', array(&$config_vars, $return_config)); |
|
497 | 500 |
return $config_vars; |
498 | 501 |
} |
499 | 502 |
|
... | ... |
@@ -535,6 +538,7 @@ function shd_modify_standalone_options($return_config) |
535 | 538 |
shd_switchable_item("shd_disable_mlist", state); |
536 | 539 |
}'; |
537 | 540 |
|
541 |
+ call_integration_hook('shd_hook_admin_standalone', array(&$config_vars, $return_config)); |
|
538 | 542 |
return $config_vars; |
539 | 543 |
} |
540 | 544 |
|
... | ... |
@@ -628,6 +632,7 @@ function shd_modify_actionlog_options($return_config) |
628 | 632 |
shd_switchable_item("shd_logopt_monitor", state); |
629 | 633 |
}'; |
630 | 634 |
|
635 |
+ call_integration_hook('shd_hook_admin_actionlog', array(&$config_vars, $return_config)); |
|
631 | 636 |
return $config_vars; |
632 | 637 |
} |
633 | 638 |
|
... | ... |
@@ -683,7 +688,10 @@ function shd_modify_notifications_options($return_config) |
683 | 688 |
|
684 | 689 |
// If we're being called from admin search, just return stuff |
685 | 690 |
if ($return_config) |
691 |
+ { |
|
692 |
+ call_integration_hook('shd_hook_admin_notify', array(&$config_vars, $return_config)); |
|
686 | 693 |
return $config_vars; |
694 |
+ } |
|
687 | 695 |
|
688 | 696 |
// Otherwise... this is where things get... interesting. |
689 | 697 |
$subtext = array( |
... | ... |
@@ -703,6 +711,7 @@ function shd_modify_notifications_options($return_config) |
703 | 711 |
$config_vars[$id]['subtext'] = $subtext[$item_id]; |
704 | 712 |
} |
705 | 713 |
|
714 |
+ call_integration_hook('shd_hook_admin_notify', array(&$config_vars, $return_config)); |
|
706 | 715 |
return $config_vars; |
707 | 716 |
} |
708 | 717 |
|
... | ... |
@@ -340,6 +340,14 @@ function shd_list_hooks() |
340 | 340 |
'shd_hook_tickettotopic', // functions to call just before moving a ticket into a forum topic |
341 | 341 |
'shd_hook_topictoticket', // functions to call just before moving a forum topic into a ticket |
342 | 342 |
|
343 |
+ // Admin hooks |
|
344 |
+ 'shd_hook_admin_display', // to extend the SD Admin > Options > Display Options |
|
345 |
+ 'shd_hook_admin_posting', // to extend the SD Admin > Options > Posting Options |
|
346 |
+ 'shd_hook_admin_admin', // to extend the SD Admin > Options > Admin Options |
|
347 |
+ 'shd_hook_admin_standalone', // to extend the SD Admin > Options > Standalone Options |
|
348 |
+ 'shd_hook_admin_actionlog', // to extend the SD Admin > Options > Action Log Options |
|
349 |
+ 'shd_hook_admin_notify', // to extend the SD Admin > Options > Notifications Options |
|
350 |
+ |
|
343 | 351 |
// Template hooks |
344 | 352 |
'shd_hook_tpl_after_tkt_detail', // functions to call after the ticket details (before additional details), in the ticket level left column |
345 | 353 |
'shd_hook_tpl_after_add_detail', // functions to call after the ticket details (after additional details), in the ticket level left column |
... | ... |
@@ -36,7 +36,7 @@ function shd_add_to_boardindex(&$boardIndexOptions, &$categories) |
36 | 36 |
if (!empty($board)) |
37 | 37 |
return; |
38 | 38 |
|
39 |
- call_integration_hook('shd_hook_boardindex_before'); |
|
39 |
+ call_integration_hook('shd_hook_boardindex_before', array(&$boardIndexOptions, &$categories)); |
|
40 | 40 |
|
41 | 41 |
// OK, so what helpdesks are we displaying? |
42 | 42 |
$depts = shd_allowed_to('access_helpdesk', false); |
43 | 43 |