module

What is the difference between developing a Drupal module and a WordPress plugin?

So I've been asked to take over another persons code in WordPress with little time before launch date... Usually I would say no but it's an interesting project. I am a pretty good Drupal programmer but have little experience in WordPress. So I want to know, what is the difference between developing a Drupal module and a Wordpress plugi...

I'm looking for a "most read" module for Drupal

Is there a "most read" module for Drupal? I want to create a "most read" block on my drupal page. ...

calling a function from another module in vb.net

I have an 100 aspx files with one module file for code. All these aspx files have the same backend function, so i created on public module for all these files to access. These files are in the same folder. But for some reason the aspx files cannot access the function from that module. mod1.vb Code (.vb file) Public Module Allinone S...

Accessing names defined in a package's `__init__.py` when running setuptools tests

I've taken to putting module code directly in a packages __init__.py, even for simple packages where this ends up being the only file. So I have a bunch of packages that look like this (though they're not all called pants:) + pants/ \-- __init__.py \-- setup.py \-- README.txt \--+ test/ \-- __init__.py I started doing this because...

How to change Drupal input filter behaviour based on output location

I have a Drupal filter module whose output I would like to alter, depending on where the output is going to be displayed. Specifically, I want to the filter to give the full output for nodes, but trim the content down for blocks. ...

Magento _prepareLayout() called 5 times to many

** New EDIT ** so what I'm trying to do is this. I want the to add new form elements generated by my module on the product view of the following url http://magento.example.com/catalog/product/view/id/46 ultimately these elements will be determined to show up by a related table in my module I expected that if I extended Mage_Catalog...

Using modules as namespaces to override built-in classes in Ruby

I have a Date class which I would like to use to overwrite Ruby's Date class. However, whenever I do a require 'Date' in my other files, it includes Ruby's Date class and not my own. I thought that putting it in a module would work well, so I did so within the Date.rb file: module myModule class Date #... end end However I stil...

Zend Navigation - Url config problem

Hi, I store my navigation content in a navigation.xml file in the configs folder of my project. Basically I have two modules, the default module that deals with e.g. authentication and basic page usage and the admin module to admininstrate the website. When I sign in as admin a special admin navigation appears according to my acl and...

how to develop module based application in zend?

Hi all, I am new to zend, i need help in creating zend application using modules. please help thanks ...

run all modules of a catalog (prism)

hello, i'm using the desktop library of prism. what i want is to get modules in a directory and then, run them. I do like that: DirectoryModuleCatalog catalog = new DirectoryModuleCatalog(); catalog.ModulePath = @"C:\Users\Raph\Documents\Visual Studio 2010\Projects\LibraryLoad\LibraryLoad\Modules"; I checked, the modules are loaded ...

overriding non-NAPI network polling handler with a kernel module

As those familiar with network device drivers are aware, the interface between the kernel and driver has been changed to use NAPI (New API). In this paradigm, a polling function is associated with a napi_struct, which is a new structure that must be allocated by the device driver. At any rate, I have an old driver and don't have the ti...

How do I use Node.js modules?

Hey, I recently installed Node.js on a fresh Linode box, and I think I'm in a weird situation where I can't use require() to load any thrid party modules. I've installed npm and have successfully installed modules via npm, but whenever I try to require one of the modules (or just some of my own code in the same directory), Node throws a...

In a Maven multi-modules project, is it possible to apply the assembly plug-in in a recursive manner?

I have a multi-module Maven project, and I would like to assemble together artifacts created by running the assembly plugin on individual modules. Is this possible? ...

Pathauto based on Primary Links

I'm trying to set up pathauto to generate clean URLs based on my primary links. So About > Executives / Board would be about/executives-board. I've used the [menupath-raw] token for this which is creating the alias: About/Executives / Board It's not removing the slash and leaving in spaces. Also, it's not converting to lowercase. I've ...

What can I check for in module building to ensure no crashes in drupal

Hello guys, I have a quick question I am currently running a test site of Drupal. I have a module that was written and supported for versions up to 6.16 the test site that I would currently like to use this module in crashes when I enable the module. I would like to know what basic elements can I look at to ensure that the code is comp...

Difference between Module#const_set and Module#module_eval

OK, real quick, here's the code: class A def foo FOO end def self.foo FOO end end module B class C < A end end B.const_set(:FOO,'asdf') >> B::C.foo NameError: uninitialized constant A::FOO from ./foo.rb:6:in `foo' from (irb):1 >> B.module_eval {FOO='asdf'} => "asdf" >> B::C.foo => "asdf" Aren't they suppos...

Drupal get module info?

Is there any function in Drupal like get_module_info('MODULE_NAME') or I should parse info file? ...

how to include python modules in linux?

I found this xgoogle python modules http://github.com/pkrumins/xgoogle, very interesting. How exactly should i include or install these files in linux?? if i want to do something like this using xgoogle python module? >>from xgoogle.search import GoogleSearch I know that we can use from, import to use modules, but to include an exte...

Trouble importing BeautifulSoup in python

I've unpacked BeautifulSoup into c:\python2.6\lib\site-packages, which is in sys.path, but when I enter import BeautifulSoup I get an import error saying no such module exists. Obviously I'm doing something stupid... what is it? ...

Condensing Declaration and Implementation into an HPP file.

I've read a few of the articles about the need / applicability / practicality of keeping headers around in C++ but I can't seem to find anywhere a solid reason why / when the above should or should not be done. I'm aware that boost uses .hpp files to deliver template functions to end users without the need for an associated .cpp file, a...