Skip to main content
backdrop Backdrop Forum
  • Welcome!
    • Login
    • Register
  • Forum
  • FAQ
  • Following
  • About
  • Wishlist
  1. Home »
  2. [DX][META] Introduce functions similar to views_get_views_as_options() for other things

[DX][META] Introduce functions similar to views_get_views_as_options() for other things

While working on https://github.com/backdrop-contrib/headless/issues/9, I noticed that we have views_get_views_as_options(), but there is no respective node_get_node_types_as_options() or taxonomy_get_vocabularies_as_options() etc.

We should introduce such functions to improve DX and provide consistency in code.

GitHub Link: 
https://github.com/backdrop/backdrop-issues/issues/3545
GitHub Issue #: 
3545
  • Log in or register to post comments

Weekly office hours

Bring your questions to our weekly virtual office hours, every Wednesday. Everyone is welcome.

Recent topics

Animating the header links

Posted 7 hours 37 min ago by (NexViolentus) in How-To and Troubleshooting

Github Tips and Tricks for Contrib Maintainers

Posted 1 day 8 hours ago by (stpaultim) in How-To and Troubleshooting

Ubercart - Programmatically add product to cart and straight to Checkout

Posted 1 week 2 days ago by Martin Price | System Horizons Ltd (yorkshirepudding) in How-To and Troubleshooting

Recent comments

Thanks Alejandro. That was the clues I needed.

Posted 1 week 1 day ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

Ubercart - Programmatically add product to cart and straight to Checkout

Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...

Posted 1 week 2 days ago by Alejandro Cremaschi (argiepiano) on:

Ubercart - Programmatically add product to cart and straight to Checkout

No problem, let's see how it evolves.  I'd be happy to provide a suggested version if i could.  I will keep that in mind and try learn this hook chain hopefully very soon. I will...

Posted 1 week 3 days ago by RS Snyder (theflightrs) on:

File hashing uploads made through TinyMCE

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org