function hosting_task_set_title in Hosting 5
Same name and namespace in other branches
- 6.2 task/hosting_task.module \hosting_task_set_title()
- 7.4 task/hosting_task.module \hosting_task_set_title()
- 7.3 task/hosting_task.module \hosting_task_set_title()
2 calls to hosting_task_set_title()
- hosting_task_insert in task/
hosting_task.module - Implementation of hook_insert().
- hosting_task_update in task/
hosting_task.module - Implementation of hook_update().
File
- task/
hosting_task.module, line 155 - Web server node type is defined here.
Code
function hosting_task_set_title(&$node) {
$ref = node_load($node->rid);
$node->title = drupal_ucfirst($node->task_type) . ' ' . $ref->title;
db_query("UPDATE {node} SET title='%s' WHERE nid=%d", $node->title, $node->nid);
db_query("UPDATE {node_revisions} SET title='%s' WHERE vid=%d", $node->title, $node->vid);
}