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

Button "onClick"

Well, I'm developing a module, and in this module i want to use a buton to add the value from a select to the session ... so, i want to know how i call a function using the button from the form (the button is not a submit button, is just a button) without use reload, I would like something like ajax.... when the user click on the add button, the value would be saved on the session, and then he could add some another values. the real problem is how make a button call a php function. Somebody has any Ideia ?

Google News Site Map Question, Help please

Hello friends at Drupal,

My site has just now been accepted to Google News and you probably know that Google News has a new Site Map specifically for thsoe sites accepted in Google News.

Has anyone created a site map for Google News?

I need some help. Would you please help me?

Many thanks

horizontal dropdown menu

hoe to perform horizontal dropdown menu

dropdown menu

how to create dropdown menu in any theme

dropdown menu for taxonomy

i have created the categories using taxonomy, i want to make menu for those catefories.

menu must be dropdown menu.

i.e.

technologies
-java
-vb

Code Clean up using node_import module

I'm seeking help from those can help me out with this. I'm migrating from my current MySQL database to drupal's MySQL. However, in my current mysql db it contains codes like <br>, &, <p> and etc which are not a XHTML way of coding. Because currently I'm designing the new site which need to be a "Valid XHTML 1.0 Strict". I couldn't just import the improper code to the new XHTML 1.0 Strict's website as it wouldn't be XHTML Strict anymore.

If I'm not mistaken, I've to use the str_replace() function to do the replacing but I don't know where should I insert it to.

I guess should be around this area around line 759.

 /**
 * Get one row from the CSV file and return it as an array of
 * columns/fields.
 */
function _node_import_csv_get_row($filepath, $reset = FALSE) {
  static $handle;
  $size = variable_get('node_import_csv_size', 10000);
  $separator = variable_get('node_import_csv_separator', ',');

  if ($filepath == '') {
    unset($handle);
    return FALSE;
  }

  if (!isset($handle) || $reset) {
    if (isset($handle)) {
      fclose($handle);
    }
    $handle = fopen($filepath, 'r');
		
  }
  return fgetcsv($handle, $size, $separator);
}

I hope I can get the code clean up using the node_import module so I won't need to manually replacing the codes by hands.

Can some developers

Pages

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