Creating a module configuration (settings) page


I'm developing a simple Drupal module, which displays some Text in the module. There is 2-3 different textfields that makes it possible for the admin to add text to the Text-module wia Block specific settings. The problem is that I can't get the required textareas to show up in the Block specific settings menu. There is only the default Block specific settings field, Block title.

Here is my testapp.module file, which is made following the tutorial ("07. Create a module configuration (settings) page" was a little hard to follow)

how to make different between normal user and admin user @ the time of login

when a normal user can login and admin can login how it make different..
and how i can change user profile information at the time of register.
can any one help me ?

multi language in drupal 6


I like use drupal 6 for my new website and I wish run a multilanguage website.

How can I set my content to shown in its language and no Other languages ?

For example : English contents show in en language and French contents be showing in fr language.

In drupal 5 i18n module doing it automatically but I don't know its way in drupal 6 .

Drupal contractors

I'm a Drupal developer who's recently begun to receive a large volume of Drupal project requests and ending up with a lot of overflow. In an effort to expand, I have decided to start building a rolodex of Drupal contractors who are interested in receiving requests for a quote on various size projects in all price ranges, so that I could begin building business relationships with people who are open to sub-contracting on an as-needed basis.

Still undecided about Drupal!

I've been interested in Drupal for quite a while now, and although I used it briefly on one of my sites a while back I haven't come back to it since. (The site used one of Drupal's built in themes.)

I have a few sites that could be Drupal powered but there's always something that stops me giving up the comfort blanket of using vBulletin as the back end (prob because I have used it for two years and know it really well).

Anyway, my main concerns about Drupal are:

1) Is it possible to style every single type of page to pretty much exactly how I want it? And how about sub categories - can they be given independant styles/designs too? For example, if I have a News index page, and then I have lower level index pages for say, health news, economy news, entertainment etc, can all these be easily given unique styles and layouts?

2) Server efficiency. I often hear people say that Drupal is not all that great for logged in users, my sites are based around the community - almost every page (apart from category index pages) will allow comments. How efficient is Drupal in this sense? What kind of server spec would I need to go for if the site was to serve around 2 million pages a month? (mostly text, few images, around 50% logged in users). I know that's not much to go on, but I just need some assurance that Drupal is not a resource hog..

How to update cck field when adding nodes by code


I wrote a function so I could quickly add nodes by code.
Basically it builds a $node object and then uses node_save().

Everything is good until I try to add values to cck fields for that node... no success.

What I need is:
I have a cck field called 'subtitle' which I want to get an automatic value (based on node's title) when
the user adds a new node.
(I tried looking at the macro engine and use something like $node['field_subtitle'][0]['value'] = "something" but no luck)

Here is the function I am currently using to add nodes (I extracted it from the blogapi.module):

function lt_add_node($title,$type,$content,$userid,$username) {

$url = $title;

// Add the node
$edit = array();
$edit['type'] = $type;
// get the node type defaults
$node_type_default = variable_get('node_options_'. $edit['type'], array('status', 'promote'));
$edit['uid'] = $userid;
$edit['name'] = $username;
$edit['promote'] = in_array('promote', $node_type_default);
$edit['comment'] = variable_get('comment_'. $edit['type'], 2);
$edit['revision'] = in_array('revision', $node_type_default);
$edit['format'] = FILTER_FORMAT_DEFAULT;
$edit['status'] = 1;
$edit['title'] = $title;
$edit['body'] = $content;

$edit['taxonomy'] = array('tags' => array(1 => 'Unsorted', 136 => ''));


Subscribe with RSS Subscribe to RSS - Drupal 6.x