You are here

function tft_update_term in Taxonomy File Tree 7.2

Update the term name.

Parameters

int $tid:

string $name:

Related topics

1 call to tft_update_term()
tft_edit_term_form_submit in includes/tft.pages.inc
Submission callback: for tft_edit_term_form()

File

./tft.module, line 1155
Hook implementations and module logic for TFT.

Code

function tft_update_term($tid, $name) {
  db_update('taxonomy_term_data')
    ->fields(array(
    'name' => $name,
  ))
    ->condition('tid', $tid)
    ->execute();
}