DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for 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
This is the contact.test file I have created for the D6 Contact module
April 10, 2012 - 3:02pm — Anonymous
<?php
/**
* @file
* A Simpletest test for the contact file.
Contact
permissions
simpletest
Read more
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