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

$_POST & $form_values empty (trying to port taxonomy_xml module to 4.7)

I'm trying to "port" the taxonomy_xml module and i've inserted some print statements in taxonomy_xml_import

function taxonomy_xml_import() {
print time();
print '

'; var_dump($_POST); print '

';
print '

'; var_dump($form_values); print '

';
$op = $_POST["op"];
$edit = $_POST["edit"];
if (empty($op)) {
$op = arg(1);
}
switch ($op) {
case 'Load':
$output = taxonomy_xml_import_load($edit);
case 'import':
default:
$output .= taxonomy_xml_import_form($edit);
}
print theme('page', $output);
}

Both $_POST & $form_values are empty. When I change the action to a different module and repeat the print I do see values in $form_values. Anybody know what's going on?

Regards

Sameer

Form fields reset to default values on form_set_error()

I'm writing a module that will be inserted into the ecommerce checkout process using the checkoutapi() hook. When called, this module scans the contents of the cart, identifies items that we need to capture additional information for, and generates a form to collect that information. When the form is validated and an error in the input is found, I use form_set_error() to highlight the appropriate fields. However, when this happens, all values on the form reset to their default values!

How do I display teasers in alphabetical order (by last name)?

I know how to pull nodes from a certain taxonomy and display various information of that node. I have kind of a php question. I need an easy way to sort the nodes by a field, actually the title because the title is the first and last name of the person.

Now if there is an easy mysql fix I'm all for that. Fail that I need to put the nodes into an array and maybe parse some strings so that I can spit them out in alphabetical order by last name.

Any ideas on the easiest way to do this?

Thanks

301 redirect url

Hello,

I was wondering if anyone could help me. I want to 301 rediect a url. I want this done:

http://www.mydomain.com/index.php 301 redirected to: http://www.mydomain.com

Can anyone help me please?

Thanks,
Joey.

excerpt.module with tinyMCE, 4.7.0.rc1

Trying to use excerpt.module from CVS with tinyMCE.module from CVS. tinyMCE 2.0.4, drupal.4.7.0.rc1

On every "Submit" and also "Preview" I see <*><* /> </*> tags added to excerpt. No such tags added to body or title. I ended up adding str_replace in excerpt.module:

hook vs. nodeapi

Hello,

I'm relatively new to drupal and am in the process of writing my first few modules.

I have a question about the differences between using the various hook_ functions (hook_insert, hook_delete, etc...) versus hook_nodeapi.

Pages

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