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

Possible Date Preview Bug - help to confirm?

Good morning,

I think I've found a bug in 4.7, but since I'm relatively new to drupal, I hoping someone else can confirm it before I post a bug report.

I believe the bug is related to this post.

When creating a form element of type "date" when using the new forms API, it looks like the date that the user sets isn't displayed correctly when previewing the content. I've created a tiny module to demonstrate:

<?php
function DatePreviewBug_node_info() {
  return array('DatePreviewBug' => 
   array('name' => t('DatePreviewBug'), 
         'base' => 'datepreviewbug'));
}

function DatePreviewBug_form(&$node) {
  $form['title'] = array(
    '#type'=> 'date',
    '#title' => t('Test Date'),
    '#required' => TRUE,
  ); 
  return $form;
}

function DatePreviewBug_view(&$node, $teaser, $page) {
	$node->body .= theme('DatePreviewBug_view', $node);
}

function theme_DatePreviewBug_view($node) {	
  $output = 'Test Date: ' . date('l, F d, Y', $node->title);
  return $output;
}
?>

Once installed, go to: node/add/DatePreviewBug, change the "Test Date" to a different date, then hit the "preview" button. You'll (hopefully!) see that the entered date is ignored in the preview.

If someone can confirm that my test module is set up correctly and this really is a bug, then I'll go ahead and submit a bug report.

Problems with Menus

I want to make my site navigation. So I decided to use menus. I created one menu and added a menu item. The problem is that I do not really know what I have to set for the path.
Example:
Menu: Home
MenuItem: Private

What path do I have to set for the MenuItem Private?

Can you give me a hint?

Regards,
Jacqueline.

How to aggregate category from RSS feed?

Hi! Does anyone have a ready solution for this? I need to aggregate categories from Rss feeds, so I could dynamically update categories on my web pages and filter the information according to them.

Drupal and JSP/Java Servlets

Does anyone around here creating any modules that use Java Servlets? If so what's the best way to make that happen, or is that even worth messing with? I suppose you could use the experimental php/java extension or use some sort of web service-like system.

Thanks.

Ecommerce module

Hi guys.

I'm new in drupal and im using it for my project, coz im not very good at .php language..
so, to make my work more easier, i use drupal with the ecommerce module..

is there an ecommerce module that will work with the Drupal 4.7 RC?

Im having a problem with me ecommerce.cvs

coz i don't think that it will work with the drupal 4.7 RC..

any help is very much appriciated..

thanks guys..

Q: Help with SQL Query

I am having problems figuring out how to do this query.

I have a bunch of cell phones categorized by taxonomy. For instance I have a Category called "SonyEricsson" that lists all the different types of SonyEricsson phones. Each type of phone is a term. For example:

Pages

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