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

How do i will make side bars?

How i will make side bar in right side? And how i will insert poll in content?

Font - Option of increasing and decreasing the size in the Drupal

Hi people, I look for a module to increase and to decrease the size of the font for my site drupal on version 4.7
There is a module called " Font size ", however he was forgotten for the version 4.7 and 5
Does anybody have a solution for my problem?

Gustavo Campos.
Recife - PE / Brazil
www.pitang.com
www.pitang.com.br

How to add a new item in the primary links using API?

How can I add a new Item in the primary links using the api, the following add a new item in the navigation block. I try to replace the 'path' property but without success.
=========================
function mymenu_menu($may_cache) {
// Create an array to hold the menu items we'll define.
$items = array();
if ($may_cache) {
// Define a static menu item.
$items[] = array(
'title' => t('Greeting'),
'path' => 'mymenu',
'callback' => 'mymenu_hello',
'access' => TRUE
);
}
return $items;
}

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?

Pages

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