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

Delaying Article Posts

Hello,

I'm brand new to the CMS game. I run a number of sites. Because I'm very busy, I'd like to be able to focus on entire day or two and develop a large body of articles for one site. I'd like for Drupal to add a few articles on a daily basis. The idea is to have a slow and steady site with fresh content added daily. I do not have the time to add one article a day to every site I own. I'd never get anything else done.

Is there a known module/plugin/whatever you call it in Drupal's language that could be easily setup to handle delaying my articles?

Progress SQL/ODBC Module

I created a Module that connects to a progress DB and queries the DB given values from a form on my module. I have a config.inc file which has my Data Source Name information (since I am connecting to the DB through ODBC) and also have queries to be executed by my module. When I call my module functions which execute my queries I get my results but at the bottom of the footer page I keep seeing this error:

"GetRegValue(): Unable to RegQueryValueEx() The system cannot find the file specified."

Profiles Module

Dear Drupallers,
I would like to disable the users from editing their usernames and other specific fields in the profiles module.
Does anyone have any tips for doing this? I would appreciate any help and thanks in advance.

Abe

Extend hook_onload() to accomodate body class, id, and title attributes, instead of just events.

I am trying to make a body_styles.module that will uses a combination methods to derive and insert id and class attributes into every page's body tag. (see "How to generate body class/id attributes for each page" for more details)

My question is, is there a way for a module to insert code into the body tag?

I keep thinking that hook_onload() is the way to go here, but the problem (as I read it in the api) is...

The returned statements will be automatically separated by semicolons, so including them in the returned array is optional.

This prevents me from being able to use it to insert class/id, title attributes. Or is there a better way than hook_onload() for a module to insert code into the body tag? (This is my first module so I'm new to all the api hooks)

The body tag is very special to css designers. The ability to insert class and id hooks gives us unbelievable control over the look of a site, usually mitigating the need for pounds of additional markup throughout the page. And this onload_hook seems like the logical place to get a foothold.

If there isn't a better way to do this, would it be possible (and would people be amenable) to modify/extend hook_onload() in the core to allow us to insert other attributes like id, class, etc?

Extra calls to menu items

I have a question about what happens if you invoke more than one menu callback in one page generation. Please follow along with underneath example.

A user browses to example.com/user/register. All bootstrap routines are executed. It is here where user_menu() registers user_page() as the appropriate callback for the "user/register"-path. Through user_page(), we are redirected to user_register(). Then, through _user_forms(), user_register invokes all $module_user functions to complete the user registration form:

// fragment of user_menu()
    $items[] = array('path' => 'user/register', 'title' => t('register'),
      'callback' => 'user_page', 'access' => $user->uid == 0 && variable_get('user_register', 1), 'type' => MENU_LOCAL_TASK);

// fragement of user_register
  $extra = _user_forms($edit, $account, $category, 'register');

Lets now say that I have the Captcha module installed.

how to set form name

like this
<from name="testname" .. >
I use drupal cvs

$from['id']=array(....);

Pages

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