function better_formats_create_role in Better Formats 6
Creates base format default entry for a newly created role.
See also
2 calls to better_formats_create_role()
- better_formats_check_roles in ./
better_formats.module - Ensure that all roles have Better Format entries in the database.
- better_formats_new_role in ./
better_formats.module - Creates base format default entry for a newly created role from role from.
File
- ./
better_formats.module, line 248 - Enhances Drupal's core input format settings.
Code
function better_formats_create_role($rid) {
// Create format default stubs for a role.
$types = array(
'node',
'comment',
'block',
);
foreach ($types as $type) {
$values = array(
$rid,
$type,
0,
1,
25,
);
drupal_write_record('better_formats_defaults', $values);
}
}