The access-callbacks tag has no wiki summary.
2
votes
0answers
28 views
How to test AJAX Callback with simpletest on Drupal 6
I know there is drupalPostAJAX() available on Drupal 7 to do this, but I want to use it on Drupal 6.
So I found on this link : http://tiger-fish.com/blog/drupal-6-posting-ajax-callbacks-simpletest a ...
3
votes
1answer
29 views
How to secure ajax on automatically save field data
My custom module make ajax request on _node_edit form after input changed by user, and menu callback save this field's data (only this field, not all node object). Menu item is as ...
0
votes
3answers
38 views
How to test if user is denied access when her role has no “access content”
Wanting to test that only users with "access content" have access:
public function testOnlyAccessContentAccessible() {
$web_user = $this->drupalCreateUser();
$this->drupalLogin($web_user);
...
1
vote
1answer
15 views
What “access argument” or permission-string to use for a custom module?
When developing a custom module that has a configuration area, what is the correct or preferred permission to use? In core, you see a mixture of:
administer site configuration
access administration ...
3
votes
1answer
45 views
How do I add a menu router that works even in the maintenance mode?
when a Drupal site is in maintenance mode (not due to a technical fault), users without permission cannot access any page other than /user.
Is there any special hook to define a specific menu router ...
0
votes
1answer
68 views
hook_menu and Access Denied
Why do all of these menu items return "Access Denied" pages no matter how many times I drush cc all and clear cache from admin/config/performance?
/**
* Implements hook_menu()
*/
function ...
0
votes
1answer
27 views
Unlock a file download via callback
pls I want to control a file access to download, a user will download the file only if a test condition is true. .... there is going to be an execution of a callback url from an external site, and my ...
1
vote
1answer
48 views
Deny Access (instead of 404) for non-existant user accounts
For a particular project I'm working on, I'd like to return access denied instead of a 404 for non-existant user accounts. I've tried setting a custom 404 page callback and access callback in ...
0
votes
2answers
140 views
Using “access callback” and “access arguments” provided with hook_permission
how can I check user's access first based on some permission and if user passed this check then execute access callback function with some parameters in path, some thing like this:
...
3
votes
2answers
146 views
How do I create extra permissions for an eck created entity?
I have created an entity using Entity Construction Kit (ECK) and wish to add extra permissions for that entity such as view own, edit own and delete own. I see there has been some movement in this ...
2
votes
1answer
166 views
altering access callback in hook_menu_alter [closed]
So, I want to set a new function as access callbacks for URLs specified by registration module.
Specifically I want only users that have the update rights on the node to be able to manage ...