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

Importing Nodes

I was tasked with developing an import tool to pull over our 40,000+ items from our old database. There is a lot of variety to how our old data has been stored, so our nodes had to match the old models and our import tool had to account for this. Also, we have a lot of information that would benefit from being cross-referenced (e.g. 35,000 contacts shared and used as node references for the 40,000 pieces).

So, I tried using the ImportExport API and I ran into wall with it. We needed to be able to take one piece of source data and export it as many nodes as neccessary (e.g. 1 piece and its 4 supporting nodes). As the export builds its data, it makes node ids. makes nodes for them and then puts them in as references in the "main" node. My working title for this module is "direct_node_import" and I have written it for 4.7x with an eye to importing CCK created content-types.

Decisions/Assumptions:
- Expect that command line executions will be common. When dealing with large record sets, it could take hours to process
- Expect that the import destination will be remote. In our case, the old server and the new server are 7,000 miles apart. The old server is unlikely to handle Drupal well, so the export work is done there and the import work is done on the new server
- Use the import site as the source for import directives and taxonomy. To this end, I built in a way to export individual taxonomy references. The exporting site will store these and use them so that it makes the fewest trips possible.

Placing divs in forms in 4.7

I have a module I wrote for Drupal 4.6 where within the edit form I have a DIV that gets rewritten by Javascript. In the 4.6 hook_form, since it just outputs the HTML directly, this was trivially easy to do.

Sugar anyone?

I am looking to create a module or some type of lightweight integration between Drupal and SugarCRM. Anyone interested in helping with this? I'm not too familiar with SOAP, which SugarCRM offers as its webservice, so any help would be greatly appreciated.

SugarCRM is an excellent Client Relationship Management system, definitely the best open source CRM out there. (no offense to CiviCRM, which is so dearly loved by the Drupal community.) Anyway, it's about time Drupal had a module that integrated with Sugar.

menu system question

how can i get PHP variabes with mid(menu id) and pid(parent menu id) of active(<a class=active>) menu item?

hook_user() to capture registration event

Any idea why the following hook function that i have written for my affiliates module
is not writing the user id into the table affiliates_referrals but instead writes 0 ?

function affiliates_user( $type, $edit, &$user, $category = NULL) {

global $base_url;
switch ($type) {
case "register":
db_query("INSERT INTO affiliates_referrals VALUES ( %d,UNIX_TIMESTAMP(NOW()),0,0,0)",$user->uid);
break;

}
}

Taxonomy Theme Override for Visually Impaired User

I'm trying to use the Taxonomy Theme module to make a view for a particular section.

I have a visually impaired administrator that uses a special theme. After I installed Taxononmy Theme, when she goes to the Admin section now her special theme is overridden and she can't see what is on the pages.

I'd like to make it so that for particular users - or if the user has chosen a default theme - that their choice is never overridden.

Any help on this would be greatly appreciated.

Pages

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