Better Formats is a port of a Drupal module to add more flexibility to the core input format system. It comes with different content permissions to assign to roles of users, and an admin page for configuring fields.
Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules.
Display options: When BF is enabled you will have permissions at
admin/people/permissions
to control per role display of:
Simple field level default format. This allows you set a field level default format using the standard "Default Value" setting of a field. This is only possibly normally if you enter something in the text field for the field api to save the format too. BF gives you the ability to set the format WITHOUT having to set a value in the field.
admin/config/content/formats/settings
enable "Use field default" option. function my_example_form($form, &$form_state) {
$form = array();
$form['example_text_field'] = array(
'#title' => 'Contribution message ',
'#type' => 'text_format',
'#format' => 'teaser_text',
);
$form['example_text_field']['better_formats'] = array(
'#show_selection' => FALSE,
'#show_tips' => FALSE,
'#show_tips_link' => FALSE,
);
return $form;
}
This module installs permissions for your roles to use.
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.
Ported to Backdrop by biolithic.
This module is based on the Better Formats module for Drupal, originally written and maintained by a large number of contributors, including: