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

Theming a 5.1 form

I have made a copy of book.module called kron.module and cant get the function theme_kron_form() to work.
I have added five more fields to the form. All fileds in the form $form['ev_something']. The problem that I'm having is that I'd like to be able to modify the layout of the form. I want to be able to have the $form['ev_year'] and all 'ev_xx' forms until $form['ev_minute'] fields next to one another instead of on top of one another.
My code is:


/**
* Implementation of hook_form().
*/
function kron_form(&$node) {
$type = node_get_types('type', $node);
if ($node->nid && !$node->parent && !user_access('create new krons')) {
$form['parent'] = array('#type' => 'value', '#value' => $node->parent);
}
else {
$form['parent'] = array('#type' => 'select',
'#title' => t('Parent'),
'#default_value' => ($node->parent ? $node->parent : arg(4)),
'#options' => kron_toc($node->nid),
'#weight' => -7,
'#description' => user_access('create new krons') ? t('The parent section in which to place this page. Note that each page whose parent is <top-level> is an independent, top-level kron.') : t('The parent that this page belongs in.'),
);
}

$form['title'] = array('#type' => 'textfield',
'#title' => check_plain($type->title_label),
'#required' => TRUE,

Creating a journal on a user's profile

How do I create a journal on a person's profile? I would like to integrate something similar to livejournal on each user's profile.

Any help would be much appreciated.

Thankyou :)

Sarah

Drupal 5 looking in the wrong location for modules

The only place my site will find modules is if they are in the root modules directory. It won't find modules located in sites/all/modules or sites/mydomain.com/modules. Why would this be?

Implementing a secondary authentication test against main DB (case insensitive passwords)

We import our user DB from a legacy database, which stores the password field in uppercase. As a result of this design, our core membership DB (external to Drupal) expects case insensitivity, and I want to make password logins case-agnostic on our Drupal site.

Looking for module or API that requires users to have a password of a certain length

It would be nice if it could be configured to require minimum character types as well, but not necessary.

How to track banner clicks

Hi! I've installed the Banner module, everything works fine except I don't get any click statistics! How do I enable that? (Number of views is displayed for each banner, but not the clicks).

Pages

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