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

custom module not showing up in modules list

Posted 13 hours 41 min ago by (ian) in How-To and Troubleshooting

TFA - how to setup fallback options 'per user'

Posted 1 day 5 hours ago by (clarkac) in How-To and Troubleshooting

Looking for examples of (local) news websites running on BackdropCMS

Posted 6 days 2 hours ago by Erik Wesselius (zilvervos) in Other

Recent comments

As I work through things I flush the caches after every change I make. As far as I can tell I have the custom module in the correct place (/modules/custom/fix_zero_search) and the file...

Posted 9 hours 27 min ago by (ian) on:

custom module not showing up in modules list

If you haven't already, flush all the caches. If it is in the modules folder whether directly or in a custom folder it will show up. If not, something else is wrong with your site; check...

Posted 10 hours 28 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

custom module not showing up in modules list

Awful idea! That's not how modules get installed! The number in db indicates the installed state and schema version. You're not supposed to fiddle in the database directly. There's an...

Posted 10 hours 58 min ago by (ian) on:

custom module not showing up in modules list

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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