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

imagefield size

Hello everybody,
i have one question:

how can ein set the maximum size (filesize)? image/fields/field_image --> there only one option to define the width x height;
the modules "Image", "Image Exact" and "Image Import" can´t help at this topic!

Thank´s for help!

Greetings, Jenzen!

way to know what modules are installed

Hi all

I am writting some code for my page and i have a problem:

I want to know if a module is installed and active in my drupal site because i need call one function of that module. If the module is not installed i will get an error and i want prevent it by code with defaults values.

There is any function to know this? or another way to solve this.

Thanks all.

Best regards.

How does jquery understand to use ajax (example inside)

what in here tells the browser to submit stuff trough ajax instead of a regular submit? and how would I write it if I wanted it to do a regular submit instead?

This is the example I took from a book

Having trouble with hook_nodeapi

I am writing a custom module to bridge the gap between organic groups and location by saying that the admin can define certain content types as inheriting location from their organic group, in the case that their organic group has a location. However, this is my first time working with hook_nodeapi, and I don't understand it very well, and am having trouble getting it to work. What happens now is that when the user submits a form of a location-inheriting node, "location" and "locations" are added to the node object, but as empty arrays. Here is my entire code for this module (don't worry, it's not too long).


/*
* Implementation of hook_perm().
*/
function og_location_perm() {
return array('administer og location');
}

/*
* Implementation of hook_menu().
*/
function og_location_menu($may_cache) {
if ($may_cache) {
$items[] = array(
'path' => 'admin/og/location',
'title' => t('Organic Groups Location'),
'description' => t('Configure Organic Groups Location.'),
'callback' => 'drupal_get_form',
'callback arguments' => array('og_location_admin_settings'),
'access' => user_access('administer og location'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}

/*
* Menu callback.
*/

function og_location_admin_settings() {
$types = node_get_types();
foreach ($types as $type) {

Url profile fields render as text

I have a basic view that displays a list of profile fields, but the url fields show up as links. Do I need to create a template file to add <a> tags or is there something I'm missing the view or profile configuration? Thanks.

Edited by: VeryMisunderstood
added code tags around the HTML tag in the post so that it can be seen without having to view source.

webform module

I have the webform module installed and it has been working fine. I was creating a form, a pretty long form. I have a page break in and it works. The second page break is not working. When you click on the Next button it takes you back to the first page. Anyone ever seen this before?

Pages

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