Search Form and Email to specific people

Hi All

I am building a community website, and need a module developed.

I need to have a form which the public can fill in.

The details are then matched to a list of people I know in the database, this could be the Drupal members database or a separate database.

The people who match the criteria will then receive an email the information given in the form from the person who completed the form. The person who completed the form should also receive a copy.

How to specify the schema for a text format?

Hi,

I am developing my own field type.
It is using a text_format type textarea:

$element['content'] = array(
'#type' => 'text_format',
'#title' => t('Tab Content'),
'#default_value' => isset($items[$delta]['content_value']) ? $items[$delta]['content_value'] : NULL,
'#format' => $items[$delta]['format']) ? $items[$delta]['format'] : NULL,
);

So far so good. This makes a WYSIWYG editor appear.

Now when I try to save a node with this field, it gives me an error that the column and value count do not match.
After examining the error, I see that the query expects a field to store the selected format in. So I changed my schema to include the format, but then it just adds another value (empty) for that field, and still one value extra for the format. Still the same error.

My schema hook looks like this:

$schema['columns']['content'] = array(
'type' => 'text',
'not null' => FALSE,
);

$schema['columns']['format'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);

$schema['indexes'] = array(
'name' => array('name'),
'format' => array('format'),
);

$schema['foreign keys']['format'] = array(

Select location / category for a custom content type.

Hi i am trying to set up a custom content type so the user chooses from one of the listed categories to place the node into. Example of what I'm talking about here - Say a user wanted to add a content type of 'Business' where they can add their business to our website. I want to have a category called location / area where the user chooses the state then another list comes up with more defined locations like City, South West, North West ........ then another list may come up with a further list of areas in those areas. Is this possible some how? Kind of like nested categories.

Any user can upload images to any node

Hi i have made a custom content type with an image upload field. How can I make it so any user can log in and upload images to that node without being able to edit all the other fields in the node. It is a climbing website where each node is a certain climbing route and users can comment and upload photos to that route.

Thanks for your help.

Re: Your Opinion - Limiting Users viewing of Content Per Month

Hi,
I know this has probably been asked many times, but my Drupal search don't bring anything up.

I'm playing on a project, I want to allow & restrict subscribing members (based on Ubercart's subscription module) to be limited to viewing article/node content per month based say on a subs fee package.

menu not showing...

All

I'm learning lots but missing something with menus...

created a theme with Artister.... I have no frontpage.... I just want to create a menu with a link to a colorbox gallery content I have created....

if I click on home... I see no menus at all

why not?

I have used for path because I do not understand what an internal drupal path means and how to use them... in Joomla the parent is sufficient....

anyone help a newbie please....

thanks

george

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x