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

Project module assigning

I am using the project module and i would like it to behave differently concerning assigning issues.

When you want to assign an issue, the dropdown menu only provides "unassigned" and current user name (if no one is assigned, or if the current user is assigned), or it provides current assignee name, and the current user name (if somebody other than current user is assigned to that issue).

Is there possibly a way to assign more than one person to the same issue? how can i limit the dropdown menu options to users who belong to a certain role?

thanx

Broken adress emailpage%26nid%3D18

I am getting the following link line
http://www.soccer-wikki.info/?q=emailpage%26nid%3D18
which is automatically generated.

This is causing in page not found.

Whereas http://www.soccer-wikki.info/?q=emailpage&nid=18 is ok, but this a manual input.

Broken adress emailpage%26nid%3D18

I am getting the following link line
http://www.soccer-wikki.info/?q=emailpage%26nid%3D18
which is automatically generated.

This is causing in page not found.

Whereas http://www.soccer-wikki.info/?q=emailpage&nid=18 is ok, but this a manual input.

Broken adress emailpage%26nid%3D18

I am getting the following link line
http://www.soccer-wikki.info/?q=emailpage%26nid%3D18
which is automatically generated.

This is causing in page not found.

Whereas http://www.soccer-wikki.info/?q=emailpage&nid=18 is ok, but this a manual input.

legacy.inc - Acifree and Filemanager

Ok, here we go.

Installed Filemanager and Acidfree, when I go to the settings page for each module I get error messages.

http://knightsetarmis.co.uk/admin/settings/acidfree brings up:

Fatal error: Call to undefined function: form_select() in /mounted-storage/home15b/sub002/sc17453-URRL/knightsetarmis.co.uk/modules/acidfree/acidfree.module on line 276

http://knightsetarmis.co.uk/admin/settings/filemanager brings up:

Fatal error: Call to undefined function: form_textfield() in /mounted-storage/home15b/sub002/sc17453-URRL/knightsetarmis.co.uk/modules/filemanager/filemanager.module on line 530

I just had a chat with a mate who explained that the Drupal PHP Forms library has changed in 4.7. I enabled the lagacy module but they still don't work.

I took a look at Drupal Docs, these functions (form_select and form_textfield) are in 4.6 http://drupaldocs.org/api/4.6/group/form and are supposed to be in 4.7 http://drupaldocs.org/api/head/group/form". though they are not working.

I took a look at CVS legacy module http://cvs.drupal.org/viewcvs/drupal/drupal/modules/legacy.module?rev=1.8&view=log but don't know what to do.

_POST is always empty

Hello,

I am developig my own module. I need a custom callback function. So, I created it:

     $items[] = array('path' => 'node/'. arg(1) .'/change_workflow', 'title' => t('Change workflow'),
          'callback' => 'node_article_change_workflow',
          'access' => TRUE,
          #'access' => user_access('change workflow'),
          'weight' => 2,
          'type' => MENU_LOCAL_TASK);

However, in node_article_change_workflow, $_POST is always empty:

function node_article_change_workflow(){


# Set the entry point node/XX/pass which accepts the revision
#
if ( is_numeric(arg(1)) && $node=node_load(arg(1)) ){

$body .= "FORM: ".$_POST." SIZE: ". sizeof($_POST)."
"; // ALWAYS 0!!!

// THE REST IS TO PRINT THE FORM OUT...

$form['workflow_submitted'] = array('#type' => 'hidden', '#default_value' => '1', '');
$form['submit'] = array('#type' => 'submit',
'#value' => t('Go!'),
'#weight' => '6');

$form['#action'] = '/node/'. arg(1) .'/change_workflow';

if($node->uid){ $form['author_ok'] = array('#type' => 'checkbox', '#title' => t('Author\'s OK'), '#default_value' => $node->author_ok, '#weight' => 1);}
if($node->editor_uid){$form['editor_ok'] = array('#type' => 'checkbox', '#title' => t('Editor\'s OK'), '#default_value' => $node->editor_ok, '#weight' => 2);}

Pages

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