You are here

function tmgmt_local_translation_assign_to_me in Translation Management Tool 7

Assign task to current user.

Parameters

TMGMTLocalTask $task:

1 string reference to 'tmgmt_local_translation_assign_to_me'
tmgmt_local_menu in translators/tmgmt_local/tmgmt_local.module
Implements hook_menu().

File

translators/tmgmt_local/includes/tmgmt_local.pages.inc, line 124
Provides page and forms callbacks.

Code

function tmgmt_local_translation_assign_to_me(TMGMTLocalTask $task) {
  $task
    ->assign($GLOBALS['user']);
  $task
    ->save();
  drupal_goto('translate');
}