hook_taxonomy_vocabulary_update

function hook_taxonomy_vocabulary_update

hook_taxonomy_vocabulary_update($vocabulary)

Act on taxonomy vocabularies when updated.

Modules implementing this hook can act on the vocabulary object when updated.

Parameters

$vocabulary: A taxonomy vocabulary object.

Related topics

File

modules/taxonomy/taxonomy.api.php, line 68
Hooks provided by the Taxonomy module.

Code

function hook_taxonomy_vocabulary_update($vocabulary) {
  db_update('mytable')
    ->fields(array('foo' => $vocabulary->foo))
    ->condition('vid', $vocabulary->vid)
    ->execute();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.api.php/function/hook_taxonomy_vocabulary_update/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部