OK, so I'm hoping this is the right area...it could fit so many different places...
I've been reading up on Drupal for a bit, done some simple modules just for learning - I really like it. Now, I have a website currently running on PHP-Nuke and would LOVE to get off Nuke (and all nuke derivatives) - but my problem is the site is forum centered. I can obviously use PHPBB3 to create a custom site with news and my other modules I need....but I'd prefer a prebuilt system that is modular and well supported - hence Drupal.
Hi !!
I'm new on Drupal and I can't find if there are any module just developed about this. I like to register in a database the calendar of a league, and it saves the results in each match.
This should be trivial, but I've been playing with this for awhile and can't quite find the correct solution. I'm trying to take the time to investigate and implement this properly instead of using brut force.
I have a custom block that contains a custom search form. The results from the search will appear in the content portion of the page. I need the previously submitted values to pre-populate the custom search form (so that the user can refine his/her search without starting with an empty input and default dropdowns.)
I get the following error when trying to add a node of this module:
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in D:\xampplite\htdocs\moduledev\modules\node\node.module on line 1990.
I think it has something to do with the blapie_node_info() function, but I can't figure out what it is _exactly_. Many thanks in advance for helping me out :-)
I have a hard time finding a good development environment that makes everything fly. What does your setups look like? Can you import all modules and get code completion etc.?
I'm developing a module that implements hook_form_alter to modify the node-edit form, specifically taxonomy. The form has several select boxes to choose taxonomy, but I need the validation phase to change those values depending on some logic, e.g. if the a term from both Vocab A and Vocab B are checked, the form should only submit the term from Vocab B.
The problem is I can't figure out how to change the form values before submittal. Right now the taxonomy selections are inside a fieldset "taxonomy." I've put a validate function on the fieldset element so it looks something like (simplified for the purposes of this post):
$element['#validate'] = array(
'my_validate_function' => array($my_extra_values),
);
//more code here blah blah blah
function my_validate_function($element, $my_extra_values) {
if ($element[$vid1][#value] && $element[$vid1][#value] > 0) {
$element[$vid2][#value] = 0;
}
}
But this doesn't actually change the form values for submission. I suspect the solution has something to do with form_set_value, but I can't decipher the documentation which says:
Use this function to make changes to form values in the form validate phase, so they will be available in the submit phase in $form_values.