Page Callback not working. Newbie knowledge error

Hello

I am currently developing a module that in short takes a name from a form and looks up a number of database tables and returns the results to a page as formatted output. I am having trouble getting my results to return to the page. I have the form working fine and the database search is working fine. I can prove this is working using debug to look at the array of results created and they are exactly what I would expect.

Here is my code, with the search stuff removed for clarity.


/**
* Create a form
*/

function people_search_block_form($form, &$form_state) {
$form['keys'] = array(
'#type' => 'textfield',
'#size' => 60,
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Search',
);
return $form;
}

/**
* Create a form handler
*/

function people_search_block_form_submit($form, &$form_state) {
drupal_goto('people_search/'.$form_state['values']['keys']);
}

/**
* Create the Search Form Menu
*/
function people_search_menu() {

$items['people_search/%'] = array(
'title' => t('Find a Person'),
'page callback' => 'people_search_output',
'page arguments' => array(3),
'access arguments' => array('access content'),
);

return $items;
}

/**
* Display output
*/
function people_search_output() {

New module to hook into file download and ask the user for a license to accept before

Dear Drupal community,

I miss one functionality in drupal and that is to ask the user for a license to accept before he can download a file. Now I decided to write my own module and upload it to the drupal site. So hopefully everyone can benefit from it.

I started now to learn the API but the API is really large and to find the right hooks and functions it would be really nice if someone could point me to the right functions I need.

How to create page-node-3.tpl.php in Drupal 7.4x ?

Hello Guys,

Good morning.

I am implemented my online application with drupal 6x to drupal 7x.

In drupal 6x there is page page-node-3.tpl.php which is node specific.

But can any buddy guide me how to create node specific pages.

Thank in advance for your help.

Have a good day guys.

Regards,
Satish.

need some serious documentation.

i need some serious help getting drupal video 7 to work.

this is ridiculous, there is no documentation about it.

the module tells to download and install AWSSDk which is entirely unnecessary; once again the confusion with drupal comes from poor documentation. who to blame for that? the users or the developers?

the flowplayer api breaks views, as previously stated here, this shouldn't be so f'n hard.

a sample of the errors i get when configuring the TRANSCODERS tab,

Notice: Undefined index: configuration in PHPVideoToolkit->getFFmpegInfo() (line 579 of C:\xampp\htdocs\drupal\sites\all\modules\video\libraries\phpvideotoolkit\phpvideotoolkit.php5.php).

Notice: Undefined index: in PHPVideoToolkit->getFFmpegInfo() (line 579 of C:\xampp\htdocs\drupal\sites\all\modules\video\libraries\phpvideotoolkit\phpvideotoolkit.php5.php).

Notice: Undefined index: formats in PHPVideoToolkit->getFFmpegInfo() (line 594 of C:\xampp\htdocs\drupal\sites\all\modules\video\libraries\phpvideotoolkit\phpvideotoolkit.php5.php).

Notice: Undefined index: in PHPVideoToolkit->getFFmpegInfo() (line 594 of C:\xampp\htdocs\drupal\sites\all\modules\video\libraries\phpvideotoolkit\phpvideotoolkit.php5.php).

Couple errors on Drupal 7.7 fresh install??

* Notice: Undefined variable: errno in drupal_http_request() (line 829 of /home/ollie007/public_html/drupal/includes/common.inc).
* Notice: Undefined variable: errstr in drupal_http_request() (line 830 of /home/ollie007/public_html/drupal/includes/common.inc).

====

anything to worry about?

Complete Sample Drupal 7 website

Hi,

Is there a way/place where I can download a sample website for Drupal 7 with some existing blocks, modules, page contents, contacts, etc ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x