function lingotek_add_project in Lingotek Translation 7.2
Same name and namespace in other branches
- 6 lingotek.api.inc \lingotek_add_project()
- 7.7 lingotek.remote.inc \lingotek_add_project()
- 7.3 lingotek.api.inc \lingotek_add_project()
- 7.4 lingotek.api.inc \lingotek_add_project()
- 7.5 lingotek.remote.inc \lingotek_add_project()
- 7.6 lingotek.remote.inc \lingotek_add_project()
1 call to lingotek_add_project()
- lingotek_admin_form in ./
lingotek.admin.inc - Form constructor for the administration form.
File
- ./
lingotek.api.inc, line 178
Code
function lingotek_add_project($name) {
$output = LingotekApi::instance()
->request('addProject', array(
'projectName' => $name,
));
if ($output->results == "success") {
variable_set('lingotek_project', $output->id);
return $output->id;
}
}