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

Tax-oh-nomy Term Creation

Hi everyone. I've been trying to pick apart the taxnomy module looking for the cute little line that redirects the page back to the "add/term" page AFTER a term is created. I want to redirect the page to a specific url once a term is added.

So far i have managed to destroy the vocab/term listing page, and put it back together. Goodtimes.

Thanks in advance.
Cleevo

custom module dev. adding data to users tabs from the ground up

My post on developing a custom search at http://drupal.org/node/124963 has helped one other person besides myself, so I am going to continue the technique here with a different problem.

Bear in mind, I am new to this platform and trying to learn it at a low-enough level that I can leverage it quickly in the future instead of always flailing around for a quick fix.

I need to get content from my node onto the users profile in a particular format/order.

I know that the user.module does it when the user clicks goes to view their own profile, so I start by hunting in there for clues.

Here is the user_menu stripped down to semi-pseudo code.

if ($may_cache) {

  }
  else {
    if (WE HAVE A VALID USER ID) {
      if ($user !== FALSE) {
        $items[] = array('path' => 'user/'. arg(1), 'title' => t('user'),
          'type' => MENU_CALLBACK, 'callback' => 'user_view',
          'callback arguments' => array(arg(1)), 'access' => $view_access);

        $items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('View Profile'),
          'access' => $view_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10);
        //edit user
        //delete user
        }
      }
    }
  }

How change the store admin theme?

I want to change the store_transactions_search_result output but i cannot rewrite because it isn't a theme_ function and i don't want to change the module (for further updates of e-coomerce)

¿What i must do?

How to debug xmlrpc calls with Eclipse

Hi,

I found no better support topic for this.

I am using the Zend debugger with Eclipse to debug Drupal. If anyone is interested: see http://www.zend.com/pdt. You may want to use the all in one package for easier installation. Set .module, .install, .profile to be a PHP file under Window / Preferences / General / Content types. You create a PHP project, set up a new debug configuration for "PHP Web Page" and select index.php under "File / Project" when configuring the debug configuration. I prefer to use an external browser for debugging. You also have to edit your php.ini, you have to add e.g. the following line to it (in case of Windows):

zend_extension_ts=C:\Program Files\eclipse\plugins\org.zend.php.debug.debugger.win32.x86_0.1.7\resources\php5\ZendDebugger.dll

This line (without the absolute path) can be found in eclipse\plugins\org.zend.php.debug.debugger.win32.x86_0.1.7\resources\php5\php.ini.

Of course you have to restart Apache for this to take effect.

You are now ready to debug Drupal with a nice debugger. I hope this piece of information will be useful for many.
But of course with this you will only be able to debug code, which is accessible when index.php is run. I don't know however if this approach could be used to debug the functions with which Drupal serves xmlrpc calls (sorry for my English).

Any help would be highly appreciated!

Attaching Multiple Images to Custom Node Module

Hi,

Firstly, I've been searching the Forums for what seems like a lifetime and found some topics that come close to what I want to achieve. However, I haven't found 'that one forum topic' that makes you go 'ahhhh' with relief. Have a look at what I want to achieve and see if a) you can help or b) you know where the forum topic that makes you go 'ahhhh' is hiding...

Forcing a node revision

I'm working on a module that imports html pages. Well, actually it's a heavily modified version of the Macromedia Contribute Helper module. Whenever someone views a node created with this module, it checks the stored timestamp against the timestamp on the importable document, and if the importable document is newer, then it updates the body in the database table. I'd like it to also create a new revision at this point.

Right now, it calls this function if the timestamps are different:

Pages

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