newbie needs help

Hi,

I'm a newbie but I have done necessary reading about drupal stuff... I have also implemented hook_menu and created forms for my new module.. I want to validate forms before submitting and want to use jquery with it... Can you'll point me to necessary reading content to achieve this...

Thank you...

Error installing Custom Breadcrumbs on D7

I attempted to install the D7 version of Custom Breadcrumbs via url and got this error message:

* Notice: Undefined index: log in update_authorize_install_batch_finished() (line 231 of C:\xampplite\htdocs\drupal\modules\update\update.authorize.inc).
* Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 231 of C:\xampplite\htdocs\drupal\modules\update\update.authorize.inc).
* Notice: Undefined index: log in update_authorize_install_batch_finished() (line 266 of C:\xampplite\htdocs\drupal\modules\update\update.authorize.inc).
* Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 267 of C:\xampplite\htdocs\drupal\modules\update\update.authorize.inc).
* Installation failed! See the log below for more information.

I continued hoping it would work. I enabled the module. But the configure option never shows up. So I unchecked enable, saved, and then deleted the directory with module. Then I reinstalled. No error message this time! But then when I went to Modules, checked enable for Custom Breadcrumbs, and then Save, this error message rudely interrupted my pleasant morning of working with Drupal:

Error message

Installation Woes - Apache User/Group

Hi all.
Apologies for this noob post. i am having real trouble with this!
The drupal install will not write to /var/www/html/sites/default/settings.php. I have chmod'd (recursively)777 for pretty much everything under html(this is just an internal site btw!), changed the owner and group to apache still no joy. PHP is running as root currently.
Ideas please?!!
Cheers.
j

Drupal 7 #AJAX help

Hello, I need help getting over my first #AJAX bit. I have two MENU_LOCAL_TASKs that currently directly call some PHP functions.

<?php
  // ui options for editing node with mobwrite
  $items['node/%node/edit/all'] = array(
    'title' => 'Share All',
    'description ' => 'Share all of the fields - great for webforms.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('mobwrite_share_all'),
    'access arguments' => array('access mobwrite'),
    'type' => MENU_LOCAL_TASK,
    'file' => 'mobwrite.func.inc',
  );

  // UI options for editing node with mobwrite
  $items['node/%node/edit/url'] = array(
    'title' => 'Share URL',
    'description ' => 'Shares session by URL.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('mobwrite_share_url'),
    'access arguments' => array('access mobwrite'),
    'type' => MENU_LOCAL_TASK,
    'file' => 'mobwrite.func.inc',
  );
?>

For 'node/%node/edit/all' I want to replace the "Share All" text with "Stop Sharing" and add perhaps add a throbber.

For 'node/%node/edit/url' I need to present a link for the user to copy and send to collaborators. I do not have the functionality to generate the url yet, so right now I just want to add some text and replace 'Share URL' with 'Stop Sharing'.

Drupal 7 - create taxonomy reference field programmatically, help pls

I created a new field based on taxonomy field 'taxonomy_term_reference':


$field = array('field_name' => 'field_category', 'type' => 'taxonomy_term_reference');

field_create_field($field);

then, an instance of this field to content type 'test':

[solved]Ajax HTTP Error

After I've submitted a form via ajax, I want to show a message that says that the form was submitted successfully. Preferably showing the data that was submitted. I've been trying to use ajax_command_prepend, or ajax_command_append to add the message to the form. Unfortunately, I keep getting an error. The form is processed correctly and the data is added to my table, but the message is not showing up. I get this error: http://develzone.aetwirk.com/test/ajaxerror.jpg

My form code:

/**
* Add a term
*/
function markit_form_term_add()
{
$sets = markit_get_marksets();
//drupal_set_message(var_export($sets));
$form = array();

$form['add'] = array(
'#type' => 'fieldset',
'#title' => t('Add new Term'),
'#prefix' => '

',
'#suffix' => '

',
);
$form['add']['name'] = array(
'#type' => 'textfield',
'#title' => t('Term name'),
'#size' => 15,
);
//select the set you want to add the term to

$setNames = array();
foreach($sets as $row)
{
$id = $row['set_id'];
$setNames[$id] = t($row['set_name']);
}
$form['add']['sets']['set_names'] = array(
'#type' => 'select',
'#title' => t('Select a set.'),
'#options' => $setNames,

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x