How to add an anchor to quiz submit/skip/back url
I am new to drupal as a developer. I am using drupal 7 and the quiz module. I would like to add to the URL for when a user is taking a multiple choice quiz and clicks one of the buttons back/submit/quiz, so that the quiz page is shown from the anchor #quiz-progress or similar.
I've been trying to figure out the $form array and been looking in the functions
sl_quiz_form_quiz_question_answering_form_alter and _sl_quiz_question_answering_form_submit
in sl_quiz_module, but I haven't figured it out yet.
Any help would be appreciated.
Read moreForm Validation question
I have a form I created with an input function that looks like this:
$form['annual_income'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t("Your annual income"),
// Optional description
'#description' => t('Monthly income times 12'),
);I want the user to be able to enter a number but not with commas separating the thousands. So 2330 but not 2,330.
Read moreD7 Google Maps
Hello all,
I'm working on a Google Map that is rendered via a custom module's theme() implementation. The problem I'm running into is being able to dynamically add / remove / update markers on the map based on the values from a custom form (built with FAPI). That is, without reloading the page - just by targeting the map in a callback.
Read moreCreating an Organization, Contact and activity at the same time.
I have been evaluating RedHen and to a lesser extent crm_core, and am running onto a missing feature that I would have thought was pretty common. Am I am missing something obvious.
Read moreFonction de cryptage de password
J'ouvre ce ticket pour répondre à ibaicha en référence à http://groups.drupal.org/node/216234#comment-762118
Pour la réponse regarde ce lien en anglais, il peut répondre à ta question
http://stackoverflow.com/questions/5031662/what-is-drupals-default-passw...
Need help with the arrangement of header components
Hi.
I'm at a dead end with my header.
1)
I want to have search, main menu and logo on the same row. (see attachment). The menu and logo are aligned but I can't figure out where the search block is.
To be more specific: I have enabled the search block and put it in my header. But when I do it appears as a block below menu and logo. Can anyone tell me how to move the block so it appears to the left of my main menu?
2)
Read moreD7 Form 处理execute_handlers的逻辑错误以及解决办法
问题:
当通过表单HOOK向表单#submit项中添加新的处理函数时,该函数无法获得$node的完整数据(包含$node_id)?
而事实上,由于在全局中$form_state都是引用的,每个表单默认的#submit项为第一个处理函数,也就是说该函
数处理完成后,根据处理流程,接下来#submit项添加的处理函数应该可以获得上一个函数执行后的结果。
而实际情况并非如此,排在#submit项第一个后面的函数会先开始执行,而且不是由form.inc来控制的,而是在
node.page.inc中,由node_form_submit();函数来执行,导致顺序颠倒,后面的函数失去意义。且该执行流程逻
辑错误。所有#submit指定项都应该由form_execute_handlers();来操作执行,而不是node_form_submit();
form_execute_handlers();判断需要执行的$handlers部分时,逻辑错误.
if (isset($form_state[$type . '_handlers'])) {
$handlers = $form_state[$type . '_handlers'];
}
// Otherwise, check for a form-level handler.
Lägga till nya fält i ett CCK baserat formulär
Någon som kan tipsa om hur man går tillväga för att skapa ett CCK baserat formulär som beroende på vad användaren väljer i en lista får upp nya listfält som inte synts innan. Om man ex. har en lista som innehåller kategorierna "Förrätter" "Varmrätter" "Efterrätter" och "Drycker" och väljer "Drycker", så (AJAX) laddas ett nytt listfält med olika dryckeskategorier att välja mellan.
Read moreForm validation woes/answers.
Hi all--
Muscled through this bear of an issue and wanted to share my story.
Building an ubercart site, and need to customize the /cart/checkout page to allow a user to log in from there.
Read moreChanging of menu item changes login form
Hi all,
I have a bit of a problem and I'm not quite sure how to tackle it. I have created a new menu that is set to display in a sidebar to authenticated users and contains only 3 items. One of the items links to 'user' so that the users can manage their account information.
I just found out that when I change the title of the menu item, it also changes the headline title of the login form. (see attached image) Why? And better do you have any ideas where I can look to solve this problem?
Any help is appreciated, thanks.
Read more




