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

Theming a 4.7 form

Good morning,

I'm relatively new to Drupal and working on my first module.

I've successfully created a new form for my module:
function timeoff_form(&$node) {

$form['info'] = array(
'#type' => 'fieldset',
'#title' => t('Employee Info')
);

$form['info']['employee_name'] = array(
'#type'=> 'markup',
'#value' => t('

Employee Name:
' . $user->name . '

'),
);

$form['info']['date_submitted'] = array(
'#type'=> 'markup',
'#value' => t('

Date Submitted:
' . date("l, F d, Y") . '

'),
);

$form['info']['clock_number'] = array(
'#type'=> 'textfield',
'#title' => t('Clock #'),
'#required' => TRUE,
'#maxlength' => 20
);

$form['info']['department'] = array(
'#type'=> 'textfield',
'#title' => t('Department'),
'#required' => TRUE,
'#maxlength' => 40
);

$form['request_info1'] = array(
'#type' => 'fieldset',
'#title' => t('Request #1'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);

$form['request_info1']['dates_out1'] = array(
'#type'=> 'textfield',
'#title' => t('Date(s) to be out'),

Page not found login page

I am user drupal 4.7beta. I have made a custom theme. But now when i open my page, the page works fine, but the name of the page is "page not found".

I can't seem to find the solution. I think my problem is somewhere in my theme. But i can't see a difference in code with a standard theme.

Has some one foun the solution to this problem?

Problem with pager and i18n

Helo everybody

I have problems with pager after install of i18n module. My default language is Polish, additional is English. On English blog pager links direct to Polish pages: for example first pager link from http://www.obin.org/en/blog should direct to http://www.obin.org/en/blog?from=8 but it direct to http://www.obin.org/pl/blog?from=8

Add current page, node as bookmark

Hi,
I am new to drupal and using drupal 4.6. I need a functionality whereby I can add current node or flexinode which I am viewing to my bookmarks. I have installed bookmark module..But i don't know how to add every page I am viewing as book mark....also is it possible to add a button for that...

any help will be appreciated..

Thanks a lot

Lokesh Gupta

Complicated module development issue with Taxonomy!

Hi,
I'm on developing module for help desk or ticket based support environment. Every user can ask his/her question and track the answers using it's ticket ID.

But I faced a problem and need a solution from experts in this forum. when user submit it's ticket, he/she must choose category or department that the question is related to. Also admin of the module can specify that all of the question belonging to specified category redirect to specfied user id so manager of the category must answer the questions.

dropdown list inside hook_link?

I'd like to add a dropdown to the list of links below a node...

Using the hook_link(), each link is added using the following format...
$links[] = l(t('problem?'), "problem?nid=$node->nid");

Instead, I'd like to add a dropdown form to the list of links.

I've already got an AJAX form working (kinda like Digg.com's), but I can't figure out how to add it to the end of the hook_link().

Any ideas how to get the form code to fit into there? Thanks.

Pages

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