This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Creating roles within a module?

Hi all,

I was wondering if there was any function in the API to create roles whenever a module is in use? I'd like to be able to programmatically change the access rights given to a specific user through a customized interface, instead of forcing the administrator to use the drupal interface to do so.

CVS account activation

I received this by e-mail on June 9:

we are pleased to inform you that your CVS account request has been approved. It will be activated shortly.

It has now been almost four days and when I try to do a CVS checkout I get this message:

PAM authenticate error: User not known to the underlying authentication module
cvs.exe [checkout aborted]: authorization failed: server cvs.drupal.org rejected access to /cvs/drupal-contrib for user larssg

Did something go wrong or am I being impatient?

webserver_auth.module disabled admin-account

hi everybody,

my users have to authenticate via kerberos-pam on my server,
with webserver_auth they authentication in one step through to there drupal account...that works..great..now!

The Problem is, that first at all i have to create the first account on my new installed drupal forum, that is the "admin account" in my case
login: admin
pwd: adminpassword

Image module security issue

I got this from webhost:

Hello,

We have been reported the following problem:

JavaScript Into Pages?

Dang. I typed up a nice, long question and then hit "Preview", when it returned a "stopped because of suspicious content" instead of my preview. And because I couldn't give FireFox to give me the POST data that I could keep resending, I have to type it all over again. I hope I can think straight after thirty minutes of typing has to be redone. (On the other hand, if I have to retype it, maybe it will be more succinct.) Hmm, it seems the they don't want me putting real head and body tags into the e-mail. We'll just have to pretend.

So, I'm new to Drupal and can easily see how this stuff will make my life as w eebsite designer/programmer a bit more productive. As a proof of this, I am working on transforming a small, static site to Drupal so that the people I made the site for can make monthly, minor changes on their own instead of having my help. But I'm having a couple problems.

My main problem is the use of a JavaScript application to give a photo slideshow on one page. I've replicated most of the other content into a page node and created a menu for the site. But, as you can see, this thing has JavaScript in the head area and in the body tag. Here's the page that I'm trying to put into Drupal: http://whiterockcoffee.com/roasting.html

I was looking at the DrupalDocs.org site and found a number of useful things on starting my own module to recreate this slideshow. I'm thinking of creating a custom tag that I can parse and insert the right code, including the JavaScript, thanks to the filter_example.module. But as to how to get the JavaScript into the head area, I'm a bit confused.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions