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

views - dont show results by default?

`hi guys,

if i open a view, i dont want that the view shows results without use of an exposed filter

is this possible?

greets

Lausch

og_forum - get ForumID

hi guys,

i want to add the forum from a group into my group template

so i need to print out the forum link/id to build a link to it.

does anybody now how to get the forum id from a group like the og_block does?

is something like $group->FID possible?

greets
Lausch

How can i disable caching module

I hav got some probs wid cache module.

Now i wants to disable this module directly from database (using direct database queries)
How can i do it..

I am not able to login to my site, but i have access to database, I think tht its d probs of cache so i want to disable tht module.

is there other solution of login prob.

thnx

New Module => user_access('administer nodes') Help!

Hi Guys,

I have created a new module(under process), that would behave like OG module. I have created a form with my own way like 'newsite_form' not with 'og_form_alter' as in OG.module file.
When I submit the form. It does satisfy the condition as in node.module file...

function node_object_prepare(&$node) {
  if (user_access('administer nodes')) {
    // Set up default values, if required.
    if (!isset($node->created)) {
      $node->created = time();
    }

    if (!isset($node->date)) {
      $node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
    }
  }
  node_invoke($node, 'prepare');
  node_invoke_nodeapi($node, 'prepare');
}

The line if (user_access('administer nodes')) { is not being satisfied for my module, where I should changed or leave in my module.
If you want to see the form code, that is....
<?php
function newsite_form($form_values = NULL){
global $user;
// $edit = $_POST['edit'];
if (!isset($form_values)) {
$step = 1;
}
drupal_set_message(t($form_values['op']));
drupal_set_message(t($form['id']));
if($form_values['op'] == 'Back') {
$step = $form_values['step'] - 1;
}
if($form_values['op'] == 'Next') {
$step = $form_values['step'] + 1;
}
drupal_set_message(t($step));
drupal_set_message(t($form['#id']));
$form['step'] = array(
'#type' => 'hidden',

how to have a field that is a weighted list of a combination of fields

i have a configure form for a block, and i'd like one field to be combinationfield or something . the field is a rows of items (with adding/deleting/editing) with a few cols of info. the item itself is like a combination of a text, link, and a weight, which can be filled in in a add/edit form.

is this possible? how should i do this?

User is logout in new Module

Hi,

I have created a new module that has a form and is submitted. This form submission makes the new registration of the user and makes it login.
In its submission function, if I use the 'drupal_goto('user'./$user->name)', then It keeps the user online but I did not use this and the form is redirected on the new module after submission, the user is not login, then I click on any link and shows the user login but not in new module.
What is essential to use in the new module to keep the user's original status.

Thanks.
Crinch.

Pages

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