Complete
To be used with care. Pages are complete only when they meet the posting guidelines.
Explode has a limit parameter. Happy day at Agaric!
This code below was written offline when I was merely hoping that explode could be limited to splitting on its first parameter only the first time said parameter is seen:
Update: Solution
slarosa reported on this "Files Don't Attach" thread that the only thing that fixed file uploading was:
EXPLICITLY SET the upload tmp dir in php.ini to be THE SAME of the tmp dir set up in the file upload config in Drupal; for instance:
vi /Applications/xampp/etc/php.ini
Then in the file, make sure this is set and not commented out:
upload_tmp_dir = /tmp
That's how to do it.
For historical fun Agaric's misdirected debugging will stay down here.
<?php
db_query('delete from {ontology_relationships}');
$bio_process_vocab = taxonomy_extra_get_vocab(6);
$cell_components_vocab = taxonomy_extra_get_vocab(7);
$molec_functions_vocab = taxonomy_extra_get_vocab(8);
$term_glossary = array(); // format: term name => taxonomy ID
$term_index = array(); // format: GO ID term => taxonomy ID
make file executable
chmod a+x scriptname
and don't forget to access as ./scriptname
rather than just scriptname
Resolution
<?php
// commented out below from TCS, possibly of interest
// $term = (object) array(
// 'predicates' => array(),
// );
// $term->id = $concept->getAttribute('id');
// $term->uri = $url;
// $term->name = $termname->textContent;
// $term->namerefs[] = $termname->getAttribute('ref');
<ben-agaric> All right. My brain's utterly fried. Do you see a starting point with this stuff? For a while I felt that a modular messaging framework, a whole replacement for Sympa / Mailman / that stuff was necessary, and while I think ultimately it is (and was going to be a second application to Knight, and if I can get a grasp on the field and put a proposal together will shop around anyway) -- I do think with mailhandler and notifications and suc
<catch> mailhandler's very cool.
In #drupal channel on IRC, mikey_p reminds that the CCK fieldgroup module has a weight of 9, so your module implementing hook_form_alter has to have a heavier weight (higher number) if you want to see that.
Resolution