function tmgmt_node_ui_page_alter in Translation Management Tool 7
Implements hook_page_alter().
File
- sources/
node/ ui/ tmgmt_node_ui.module, line 12 - Main module file for the translation management node source plugin user interface.
Code
function tmgmt_node_ui_page_alter(&$page) {
// Translation tabs for nodes.
if (($node = menu_get_object()) && entity_access('create', 'tmgmt_job')) {
if (isset($page['content']['system_main']['translation_node_overview'])) {
module_load_include('inc', 'tmgmt_node_ui', 'tmgmt_node_ui.pages');
$page['content']['system_main']['translation_node_overview'] = drupal_get_form('tmgmt_node_ui_node_form', $node, $page['content']['system_main']['translation_node_overview']);
}
elseif (isset($page['content']['system_main']['content']['translation_node_overview'])) {
module_load_include('inc', 'tmgmt_node_ui', 'tmgmt_node_ui.pages');
$page['content']['system_main']['content']['translation_node_overview'] = drupal_get_form('tmgmt_node_ui_node_form', $node, $page['content']['system_main']['content']['translation_node_overview']);
}
}
}