user_grant_permissions() SQL ERROR
Guys, what is the problem with that code?
// Create a Power User.
$power_user_role = new stdClass();
$power_user_role->name = 'power user';
$power_user_role->weight = 3;
user_role_save($power_user_role);
// Set permissions to power user
user_role_grant_permissions($power_user_role->rid, array(
'access administration pages',
'access backup and migrate',
'access backup files',
'access content',
'access content overview',
'access dashboard',
......................
'use advanced search',
$filtered_html_permission));
It throws me
"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module)" in user_role_grant_permissions()
But user_role_grant_permissions() ONLY needs 2 parameters not the module
http://api.drupal.org/api/drupal/modules!user!user.module/function/user_role_grant_permissions/7
How do I stop recieving forum updates?
I haven't used Drupal in many years, yet I continue to get forum post updates that have no link to unsubscribe, and no clear, obvious way even when I log in and go to that forums post. When I go to "Notifications" it doesn't show me as being set up for any, yet I've received hundreds of emails.
Yes, I've Googled it. The only post I found was this:
http://drupal.org/node/1161650
...which is unresolved.
I just want to not receive any more emails from Drupal.org. How do I make this possible?
Thanks!
How to check your approved translations.
Hello friends,
I am contributing drupal by doing marathi translation of few drupal keywords.
Can anybody please tell me how to check whether the translation made by you is approved or not? And within how many days does it get approved?
Download,modify and upload a theme
Hello all,
I am Nikhil Chavan and I am a student at Australian National University. As a part of my masters program I have decided to develop a new theme /modify and existing theme and upload it on Drupal site.
Regarding this procedure I would like to know whether there is any special permission needed from a Theme owner or I can freely download, modify theme and upload it as a new one.
I can assure that the modification will be worth appreciation and will be my own honest efforts.
I would like to know feedbacks and procedures to follow regarding this process.
Please feel free to email me on my personal email id i.e. 'nikhil.chavan1111@gmail.com'. I would love to know more from all the members and users of Drupal.
Your suggestions will be very much helpful for me.
Thank you and warm regards,
Nikhil Chavan
Drupalcafe - From waterfall to scrum: a 1-year retrospective.
Drupalcafe dives into the world of projectmanagement.
From waterfall to scrum: a 1-year retrospective. Have you been thinking about working agile? Want to know what to expect when you dive into the world of scrum? After a year of converting a classic waterfall organization to a true scrum team, it is time to take a look back. Learn about getting the best out of yourself - and providing optimal solutions for your clients! This presentation will focus on the implications for team members, management and clients. Bring your pitchforks and tough questions!
Drupalcafe duikt in de wereld van projectmanagement.
Van waterval naar scrum: een 1-jaar-retrospective. Denk je er wel eens aan om agile te gaan werken? Wil je weten wat je kunt verwachten als je de wereld van scrum induikt? Na een jaar van een klassieke waterval-organisatie ombouwen naar een scrum team is het tijd om terug te blikken. Leer hoe je het beste uit jezelf en je collega's haalt en de beste oplossing biedt voor je klanten! Deze presentatie behandelt de implicaties voor teamleden, management en klanten. Neem je hooivork en lastige vragen mee!
Interested in visiting this meetup: please signup here: http://www.meetup.com/drupalnetherlands/
When:
Start: 04 april 2013 (17:00)
End: 04 april 2013 (20:00)
Location
One Shoe
Installing the PHP Web Services Extensions
The SOAP and XML-RPC extensions are packaged with the PHP 5 installation. The SOAP extension and the XML-RPC extension are not enabled by default in a PHP installation. To enable the SOAP and XML-RPC extensions add the following extension directives in the php.ini configuration file.
extension=php_xmlrpc.dll
extension=php_soap.dll
Restart the Apache 2 server to activate the SOAP and XML-RPC extensions. The SOAP extension supports subsets of the SOAP 1.1, SOAP 1.2, and WSDL 1.1 specifications.