This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Solution for Unsupported operand types

I have got the following error

Fatal error: Unsupported operand types in C:\Program Files\xampp\htdocs\buzzintown\includes\form.inc on line 98

$form += _element_info('form');

blocks, form_ids, and hook_forms

Hey everybody,

I've having a small problem with form_ids that I can't seem to figure out.

I'm writing a module that allows the user to select the number of instances of a block that appear on any given page.
Each instance contains a form that can have custom properties. The problem is that since each form was creating using the same builder function, the forms all have the same "form_id", so the input from only the first form on the page is used in the submit function.

one content type - with another content type relation

i am using CCK to create the content type.

i have created two content type,
(1) request
(2) response

now i want to perform following task
(1) one user cas post a request using "request"
(2) another can give a response/reply to the posted request-"request".
i.e. on the post there is comment

i need same type of solution but it would be between two different content types.
so i can track that on one request how much response i have got.and on those response on which i have accepted and rejected.

how to link one content type with other

i am using CCK to create the content type.

i have created two content type,
(1) request
(2) response

now i want to perform following task
(1) one user cas post a request using "request"
(2) another can give a response/reply to the posted request-"request".
i.e. on the post there is comment

i need same type of solution but it would be between two different content types.
so i can track that on one request how much response i have got.and on those response on which i have accepted and rejected.

I need some help.. i cant get the value of my node id..

Hi im trying to make my own module and below is my code. When i insert into the database everything is there except for nid and vid.. id appreciate any help from you guys.. thanks..

module code:

<?php
// $Id$

/**
* @file
* Provides a "daily report" node type.
*/

/**
* Implementation of hook_node_info().
*/
//function dailyreport_node_info() {
// return array(
// 'dailyreport' => array(
// 'name' => t('Daily Report'), // Required.
// 'module' => 'dailyreport', // Required.
// 'description' => t('Submit or view daily reports'), // Required.
// 'has_title' => TRUE,
// 'title_label' => t('Module Name')
// )
// );
//}

/**
* Implementation of hook_menu().
*/
function dailyreport_menu($may_cache) {
$items = array();

// Do not cache this menu item during the development of this module.
if (!$may_cache) {
$items[] = array(
'path' => 'dailyreport',
'title' => t('Daily Reports'),
'callback' => 'dailyreport_front',
'access' => user_access('submit report'),
);
$items[] = array(
'path' => 'dailyreport/submit',
'title' => t('Submit Report'),
'callback' => 'submitform_page',
//'callback arguments' => array('dailyreport_entry_form'),
'access' => user_access('submit report'),
);
$items[] = array(
'path' => 'dailyreport/view',

Flash, AMFPHP, Webform, and custom service

Hi,
I'm pretty new to Drupal, and I've got a Flash movie communicating with Drupal via AMFPHP.
I'm using the Webform module, and I'd like to offer users a Flash interface for filling out the webform if they have the Flash plugin.

That means writing a Webform service.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions