changeset 893 | b24601274cd2 |
parent 869 | 58bc29c14a4d |
child 953 | 323c4cd1aa37 |
892:668e6a9adf99 | 893:b24601274cd2 |
---|---|
52 * by any external code because user plugins are loaded after the load_list is calculated. Can be useful in |
52 * by any external code because user plugins are loaded after the load_list is calculated. Can be useful in |
53 * alternative administration panel frameworks that need the list of system plugins. |
53 * alternative administration panel frameworks that need the list of system plugins. |
54 * @var array |
54 * @var array |
55 */ |
55 */ |
56 |
56 |
57 var $system_plugins = Array('SpecialUserFuncs.php','SpecialUserPrefs.php','SpecialPageFuncs.php','SpecialAdmin.php','SpecialCSS.php','SpecialUpdownload.php','SpecialSearch.php','PrivateMessages.php','SpecialGroups.php', 'SpecialRecentChanges.php', 'DemoMode.php'); |
57 var $system_plugins = Array('SpecialUserFuncs.php','SpecialUserPrefs.php','SpecialPageFuncs.php','SpecialAdmin.php','SpecialCSS.php','SpecialUpdownload.php','SpecialSearch.php','PrivateMessages.php','SpecialGroups.php', 'SpecialLog.php', 'DemoMode.php'); |
58 |
58 |
59 /** |
59 /** |
60 * Name kept for compatibility. Effectively a constructor. Calculates the list of plugins that should be loaded |
60 * Name kept for compatibility. Effectively a constructor. Calculates the list of plugins that should be loaded |
61 * and puts that list in the $load_list property. Plugin developers have absolutely no use for this whatsoever. |
61 * and puts that list in the $load_list property. Plugin developers have absolutely no use for this whatsoever. |
62 */ |
62 */ |
120 </code> |
120 </code> |
121 * @param string The name of the hook. |
121 * @param string The name of the hook. |
122 * @param array Deprecated. |
122 * @param array Deprecated. |
123 */ |
123 */ |
124 |
124 |
125 function setHook($name, $opts = Array()) |
125 function setHook($name, $dont_split = false) |
126 { |
126 { |
127 if ( !empty($this->hook_list[$name]) && is_array($this->hook_list[$name]) ) |
127 if ( !empty($this->hook_list[$name]) && is_array($this->hook_list[$name]) ) |
128 { |
128 { |
129 if ( $dont_split ) |
|
130 return $this->hook_list[$name]; |
|
131 |
|
129 return array(implode("\n", $this->hook_list[$name])); |
132 return array(implode("\n", $this->hook_list[$name])); |
130 } |
133 } |
131 else |
134 else |
132 { |
135 { |
133 return Array(); |
136 return Array(); |