Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
better_formats
Commits
d150b422
Commit
d150b422
authored
Feb 21, 2009
by
dragonwize
Browse files
Minor permission install changes.
parent
24a34382
Changes
1
Hide whitespace changes
Inline
Side-by-side
better_formats.install
View file @
d150b422
...
@@ -77,7 +77,7 @@ function better_formats_install() {
...
@@ -77,7 +77,7 @@ function better_formats_install() {
}
}
// Set default perms to be like core defaults.
// Set default perms to be like core defaults.
$default_perms
=
',show format selection,show format tips,show more format tips link,collapsible format selection,collapse format fieldset by default'
;
$default_perms
=
',
show format selection,
show format tips,
show more format tips link,
collapsible format selection,
collapse format fieldset by default'
;
// Get current core perms.
// Get current core perms.
$sql
=
"SELECT *
$sql
=
"SELECT *
FROM
{
permission
}
FROM
{
permission
}
...
@@ -94,6 +94,9 @@ function better_formats_install() {
...
@@ -94,6 +94,9 @@ function better_formats_install() {
WHERE pid = %d"
;
WHERE pid = %d"
;
db_query
(
$sql
,
$perms
->
perm
.
$default_perms
,
$perms
->
pid
);
db_query
(
$sql
,
$perms
->
perm
.
$default_perms
,
$perms
->
pid
);
}
}
// Clear the cached pages
cache_clear_all
();
}
}
/**
/**
...
...
Write
Preview
Supports
Markdown
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