Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
better_formats
Commits
840425d5
Commit
840425d5
authored
Dec 21, 2008
by
dragonwize
Browse files
#349638 : Fixed role add errors reported by cgiego
parent
dd5a3cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
better_formats.module
better_formats.module
+3
-3
No files found.
better_formats.module
View file @
840425d5
...
...
@@ -225,10 +225,10 @@ function better_formats_new_role($form, &$form_state) {
$rid
=
db_fetch_object
(
db_query_range
(
$sql
,
0
,
1
))
->
rid
;
// create stubs in per role table
$sql
[]
=
"INSERT INTO
{
better_formats_defaults
}
$sql
=
"INSERT INTO
{
better_formats_defaults
}
VALUES (%d, '%s', %d, %d, %d)"
;
db_query
(
$sql
,
'node'
,
$rid
,
0
,
1
,
25
);
db_query
(
$sql
,
'comment'
,
$rid
,
0
,
1
,
25
);
db_query
(
$sql
,
$rid
,
'node'
,
0
,
1
,
25
);
db_query
(
$sql
,
$rid
,
'comment'
,
0
,
1
,
25
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment