DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
permissions
fix-permissions.sh - Drupal Quickstart
November 23, 2011 - 6:35am — Anonymous
#!/bin/bash
path=$
{
1
%/
}
user=$
{
2
}
group=
"www-data"
help=
"
\n
Help: This script is used to fix permissions of a drupal installation
\n
you need to provide the following arguments:
\n
\t
1) Path to your
permissions
Read more
Fix for add permission and hook_form_alter
April 16, 2010 - 6:39am — Anonymous
function
custom_love_perm
(
)
{
return
array
(
'simplenews_superadmin'
)
;
}
function
custom_love_menu_alter
(
&
$items
)
{
$items
[
'admin/user/permissions'
]
[
'access arguments'
]
=
array
(
'simplenews_superad
hook_form_alter
permissions
Read more
add permission and hook_form_alter
April 16, 2010 - 6:29am — Anonymous
function
custom_love_perm
(
)
{
return
array
(
'simplenews_superadmin'
)
;
}
function
custom_love_menu_alter
(
$items
)
{
//print_r($items);
$items
[
'admin/user/permissions'
]
=
Array
(
hook_form_alter
permissions
Read more
Add permissions to a role id
February 17, 2010 - 12:27pm — Anonymous
function
someotherfunction
(
)
{
/* testing code below for what I am going to put in the update function, to be removed.
permissions
Read more
Forward permissions issue
April 24, 2008 - 5:23pm — Anonymous
/**
* Permissions
*/
function
forward_perm
(
)
{
return
array
(
'access forward'
,
'access epostcard'
,
'override email address'
,
'administer forward'
)
;
}
/**
* Menu Hooks
*/
Drupal 6
Forward
illegal offset
permissions
Read more