You are here

public function TMGMTDefaultSourceUIController::hook_forms in Translation Management Tool 7

Overrides TMGMTSourceUIControllerInterface::hook_forms

See also

tmgmt_ui_forms().

1 method overrides TMGMTDefaultSourceUIController::hook_forms()
TMGMTNodeSourceUIController::hook_forms in sources/node/tmgmt_node.ui.inc

File

plugin/tmgmt.ui.source.inc, line 91

Class

TMGMTDefaultSourceUIController
Default ui controller class for source plugin.

Code

public function hook_forms() {
  $info = array();
  if ($types = tmgmt_source_translatable_item_types($this->pluginType)) {
    foreach (array_keys($types) as $type) {
      $info['tmgmt_ui_' . $this->pluginType . '_source_' . $type . '_overview_form'] = array(
        'callback' => 'tmgmt_ui_source_overview_form',
        'wrapper_callback' => 'tmgmt_ui_source_overview_form_defaults',
      );
    }
  }
  return $info;
}