Index: trunk/extensions/SemanticForms/specials/SF_AddData.php |
— | — | @@ -120,8 +120,10 @@ |
121 | 121 | $page_is_source = true; |
122 | 122 | $page_contents = SFFormUtils::getPreloadedText($wgRequest->getVal('preload')); |
123 | 123 | } else { |
124 | | - $page_is_source = false; |
125 | 124 | $page_contents = null; |
| 125 | + // let other extensions preload the page, if they want |
| 126 | + wfRunHooks('sfEditFormPreloadText', array(&$page_contents, $target_title, $form_title)); |
| 127 | + $page_is_source = ($page_contents != null); |
126 | 128 | } |
127 | 129 | list ($form_text, $javascript_text, $data_text, $form_page_title, $generated_page_name) = |
128 | 130 | $sfgFormPrinter->formHTML($form_definition, $form_submitted, $page_is_source, $page_contents, $page_title, $page_name_formula); |