Yakforms makes use of Drupal 7, and already makes use of a bunch of contribution modules and themes from the rich community surrounding Drupal.
Adding a module to Yakforms
All dependencies necessary for installing and running Yakforms are shipped with the source code, and you shouldn't need to add any module for a basic Yakforms usage. But if you absolutely need to add some module, here's how to do it.
A good example could be : How do I add LDAP support to my Yakforms website ?
First of all, you should know that Yakforms is only tested for its core features, and there is no guarantee that adding a Drupal module won't break something in your site. Before installing a module, you should definitely backup your database and files if you have existing data already lying on your server. After installing a module, you should also check that all features on Yakforms are working.
Finding a contribution module
All modules can be found on Drupal.org, the official website for the Drupal community. Don't forget to check the module you are interested in is both frequently updated (to avoid compatibility issues with Drupal core) and covered by the security advisory policy (to avoid security breaches introduced by the module).
For our example, we might decide to make use of the official LDAP module.
Downloading and activating a module
You should use Drush to download the module, like so (for our example) :
drush dl --destination=sites/all/modules/contrib ldap
Don't forget the
--destination flag, as this will place the module in an untouched folder of your directory, which won't overwrite your work when you update Yakforms.
If you get an error, you might need to create that folder (under
Then you have to activate that module, like so :
drush en ldap
And ... that's it !
Configuring this module
After having done this, you'll find all installed modules by browsing to
yoursite.tld/admin/modules, or by clicking on
Modules in the admin menu once logged in.
Find your module in the list, click "Configure", and you'll see the instructions there.
Adding a theme to Yakforms
Drupal has a whole bunch of themes available that you can select from to change the appearance of your site.
Yakforms is shipped with two themes : Yaktheme (which is default) and Responsive Standard, both of which can be selected by users to change the appearance of their form.
If you want to add some custom theme to Yakforms, here's how to do it. In this example, we'll install the ZURB Foundation theme.
Downloading and enabling the theme
- First you'll have to download a contribution Drupal theme. Choose it from the official Theme Project Page from Drupal.org.
- Download the theme to your Yakforms installation using the following Drush command :
drush dl --destination=sites/all/themes/contrib zurb_foundation
- Enable the theme for it to be available on your website, either by browing to
yoursite.tdl/admin/appearanceand clicking on Enable next to the theme at the bottom of the page, or through the following Drush command :
drush en zurb_foundation
That's it ! Your theme is now available for you to use on Drupal (but only for you, the admin, not to the other users : see the next sections for this).
Making a theme available on forms
If you want your users to be able to choose this new theme for your forms, you'll have to browse to the ThemeKey configuration panel. (ThemeKey is the Drupal module used to allow users to select their own themes on forms).
- Browse to
- Click on the
Selectable themessubsection and find your new theme.
- Enable the theme by checking the corresponding box and clicking "Save configuration" at the bottom of the page.
Congratulations ! You users can now choose this new theme for their form.
Making a theme default for the whole site
If you want to give your whole Yakforms website this look, you'll have to browse again to
yoursite.tdl/admin/appearance and click "Set default" new to the newly-installed theme. Your theme is now visible everywhere on your website !