function tmgmt_ui_forms in Translation Management Tool 7
Implements hook_forms().
File
- ui/
tmgmt_ui.module, line 158 - Common Translation managment UI.
Code
function tmgmt_ui_forms() {
$forms = array();
foreach (tmgmt_source_plugin_info() as $plugin => $info) {
$forms['tmgmt_ui_' . $plugin . '_translation_review_form'] = array(
'callback' => 'tmgmt_ui_translation_review_form',
'wrapper_callback' => 'tmgmt_ui_translation_review_form_defaults',
);
}
// Some source plugins might provide forms.
foreach (tmgmt_source_ui_controller() as $controller) {
$forms += $controller
->hook_forms();
}
return $forms;
}