Undefined function contact_site_form_validate() from ajax call

I'm trying to ajaxify the contact form using the #ajax api and no matter what i do this pops up every single time. Even if i change the action of the form itself to a page that doesn't exist.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /system/ajax
StatusText: OK
ResponseText: Fatal error: Call to undefined function contact_site_form_validate() in /home/c_rice/public_html/includes/form.inc on line 1414

Anyone?

Colorbox, Insert and WYSIWYG with CKEditor modules not working on 123-reg hosted site

I have Drupal 7 sites hosted in two other places using these modules and they are working beautifully. I tried to install Drupal 7 on 123-reg and found that their automatic installer needs an enclosing folder which I don't want then that it had very long URLs including the name of the hosting package. Both of these issues have been fixed, after a number of tickets, and I see that other people have had this problem.

Now these modules just don't work at all, no matter what I try.

Any suggestions?

Theme conversion D6 to D7

I had converted the d6 theme to d7, i have made necessary changes, but some of the basic node pages are showing as "Array" in the front-end. Give me suggestion, this is very urgent

Is there a module that allows you to change the color of a part of an object in real time?

Hi Everyone,

I have a project in mind that requires me to change the color of a part of an object online. For example, costumized shoes design. I want to ask if there is a module that will allow me to change the color of each part of the shoes online e.g. lace is green, sole is red, shoes cover is black, etc. If there is none, can you give me tips on how to go about this.

Thanks.

Cheers,
Mike

Replace Images in Danland slideshow

Hi All,

Does anyone know the very best way to Replace Images in the Danland slideshow? Or is there a better way for a beginner to achieve the same functionality. I wish the Danland slideshow had the ability to easily add or remove your own images from the front end as desired to keep the site fresh. :-) Thanks in advance!!

Kind regards,

Scott

Changing a form function to block_configure function

I have a form function today:

function content_form ($form, &$form_submit) {
}

That I use to allow administrators to customize content and settings for an online tool. Once changes have been made to the form, they can be saved, which I do today using a form submit function using db_update and the fields method for assigning values. As you can see the values are assigned based on passing $form_state into the function.

function content_form_submit ($form, &$form_state) {

    $price_update = db_update ('fielddata')
        ->fields (array(
                'title' => $form_state['values']['price_title'],
                'desc' => $form_state['values']['price_description'],
                'value' => $form_state['values']['price_value'],
                'minvalue' => $form_state['values']['price_minvalue'],
                'maxvalue' => $form_state['values']['price_maxvalue'],
            ))
        ->condition('fieldid', 'price')
        ->execute();
}

These two functions work perfectly well as implemented and the data gets saved to the proper table correctly.

Now, I'd like to convert these two functions to block_configuration and block_save functions, respectively so that they can be accessed in the block configuration area. In reviewing the examples module, it looks like the correct functions are as follows:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x