drupal-6


How can I get the term id after using taxonomy_save_term?


$term = array(
'vid' => 1, // Voacabulary ID
'name' => $data[3], // Term Name
'parent' => 181, // (Optional) Term ID of a parent term
);
taxonomy_save_term($term);
How do I get the term id that was just added?
You can get term id by echo $term->tid
Thanks,
Snehal

Related Links

drupal 6 forms type = select multiple = true… what is the returned value?
Pulling date of user's last purchase in drupal
Drupal 6 How to hide fileds on creating content but show on editing content?
Drupal 6 - creating full page content with no sidebars within
Node save with multiple taxonomy field of different vocabulary in drupal 6
Hybridauth module social network icons not working with user/register page drupal 6
Is there a way to make an online customer tax exempt?
How to put two form elements in a row using Drupal Form API?
Increase memory_limit of subdomains in the plesk panel
Cart items missing after login, drupal6 with ubercart
How to disable “Read more” link in product description? (ubercart, drupal6)
How to configure site created in drupal on some other machine to be run on localhost of another machine
How to have different style files in multilingual website using Drupal 6?
scrollable views in drupal 6 is needed
hook_comment is not working for update operation in drupal
Drupal 6 - Image gallery image popup when navigating site?

Categories

HOME
cloud
wso2
netsuite
reserved
react-virtualized
sqlite3
cross-browser
ebean
ojdbc
pivotal-cloud-foundry
convolution
communication
usergrid
dtrace
quickfix
dynamics-crm-online
fatal-error
reactcsstransitiongroup
flux
django-cms
lucene.net
amazonsellercentral
intentfilter
orleans
ehcache
telerik-reporting
claims-based-identity
angular2-aot
fish
facet
kannel
microsoft-chart-controls
react-chartjs
bcd
karaf
amazon-kinesis-kpl
mapdb
hexo
scaffold
xcode-extension
reportbuilder
android-fingerprint-api
spring-mongodb
redundancy
synchronous
crosswalk-runtime
objective-c-swift-bridge
gridpane
android-textview
savon
azure-virtual-network
asp.net-4.5
py2app
markojs
persist
intel-fortran
embedded-code
emailrelay
ng-animate
funcunit
xceed-datagrid
dealloc
meteor-velocity
multiprocessor
floating-point-precision
shellexecute
dataadapter
yui-compressor
limejs
referrer
gil
frameset
semantic-diff
cinema-4d
javax.script
pyinotify
oncheckedchanged
filtered-index
fixed-width
user-friendly
brewmp
anti-piracy
mediarss
mdac
grid-system
misv

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App