Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For a certain (webform) content type I want to restrict the available webform components. I.e what is found under "admin/config/content/webform" but not sitewide.
Is this possible?
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedNo, it isn't out-of-the-box. However, you (or your developer) can easily use hook_FORMID_alter to modify the form used to generate the options list for new components. I'm pretty sure there isn't an alter for the components list (and it might not provide the node if there is one), but you can look in the API file.
Comment #2
Leiph CreditAttribution: Leiph commentedOK, thanks for the rapid reply. /Leiph