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

How to restrict access to group (profile field) without OG?

Hi all,
I don't want to use organic groups module just for restricting access rigths.
I need my users, beonging to a group, to have access to nodes created by other member of his group.

thinks for your answers.

Problem with special characters on the user profiles with Drupal 5.1 + c-panel

Hi,

I just had a strange problem with the real name of the user in the user profiles. When looking at the clients, the system stopped outputting the string containing the user real name if the string contained special characters like "ä" and "ö". The string was output correctly until that symbol, the platform in use was Drupal 5.1 with the installation done over c-panel.

In this case the solution was simple, I added the following line to the end of the index.php :

setlocale(LC_ALL, 'en_US.UTF-8');

metatag + cck

hi

we are using druapl4.7, we have installed and configured 'nodewords.module'.
while we have page source it will generate the metatag.
but the problem is that in the

page-content type:
it will have correct
in other created cck:
it will append 'content' word

please provide the information on this,how to resolve this issue.

service_links version 2 suggestions

I've started maintaining service_links module recently.
I'm receiving lot of requests for adding custom bookmark service providers. This make me think of service_links version 2 where we provide option to manage service links instead of hard coding them.
I now request your suggestions for the same.

--
Cheers,
Sivanandhan, P. (a.k.a. apsivam)
www.apsivam.in

latout collapse

hi i find difficulty in adding images to my article...when i do so the layout becomes nasty.. is there any fix..?

Saving Form Fields

I'm new to module development and I'm wondering where I would save data inputted from the user for my custom field. I have my own databases table structure so I'll be doing my own sql queries, but I'm really unsure how and where I can actually get the input information when the user hits the submit button. Is it in the hook_widget for the submit operation? If that's the case, when I save something and print out the contents of $field and $items, I don't get anything returned from those arrays so I don't know how to access the data being submitted. Is there an existing module I can refer to as an example?

This is what I have for my code so far. Basically I'm building a custom field for adding rows of ingredients, with 3 columns.


<?php

function ingredients_field_settings($op, $field) {

switch ($op) {

case 'form':
return form;

case 'callbacks':
return array(
'view' => CONTENT_CALLBACK_DEFAULT
);
}
}

function ingredients_field($op, &$node, $field, &$items, $teaser, $page) {

}

function ingredients_widget_info() {
$info = array(
'ingredients' => array(
'label' => t('Ingredients'),
'field types' => array('ingredients'),
),
);

return $info;
}

function ingredients_widget_settings($op, $widget) {

Pages

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