Support questions

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
sagarmitra's picture

Input values into drupal form programmatically

How can i populate the form fields programmatically
Let me illustrate, consider the following example

<?php

function form(){
return
drupal_get_form('myform');
}
function
myform($form_state){
   
$form['name'] = array(
  
'#type' => 'textfield',
'$title' => 'Name: ',
   );
$form['submit'] = array(
'#type' => 'submit',
   
'#value' => 'Save',
);
return
$form;
}
function
myform_submit($form,&$form_state){
   
$form_id = 'myform';
$form_state['values']['name'] = 'Hello World';
  
drupal_execute($form_id,$form_state);
}
?>
Read more
sagarmitra's picture

How to populate form field after submit event of a drupal form ?

Can anyone give a working example of how to populate a form field after a submit event in drupal?
How can it be done using drupal_execute($form_id,$form_state)?

Read more
sagarmitra's picture

Create workflow programmatically

Can anyone please give me an example of how to create a workflow programmatically? I have a workflow already created. I need to invoke state change on a submit event. Any ideas?

Read more
el_reverend's picture

Single login-less or one-time login links

Hi all,

I have a Drupal question you might have some insight on. I am working on a drupal site and some of the changes require approval from other members of the company. These members are always going to be changing depending on the area of responisbility. Additionally the team decided that they would rather not have these members log in to the site as the amount of lost passwords, etc. might become a larger issue. The links are sent via email to various people only to LOOK AT but not change existing content and how it would appear on the page or section.

Read more
pkcho's picture

How to embed a view into a node?

I was wondering if someone could recommend the best way to embed a view (related articles, etc...) in the body of a node... similar to how the Onion does it in the attached screenshot.

Thank you.

Read more
stevenator's picture

CDN module produces incorrect absolute url's

Need some help putting together the CDN stuff that Christefano covered in the performance meetup from this past September at Oversee. I have basically done everything required nut am seeing some weird behavior.

I should actually start by saying that I have been researching CDN's and chose AWS Cloud Front. On November 1st they announced Custom Origins rather than having to use there default S3. This is now inline with the presentation (Christefano used SoftLayer) and works with the Basic mode of the CDN module. The File Conveyor by Wim Leers is not necessary.

Read more
bvirtual's picture

How to update menu links to "event.html" on the 1st of each month - best method to clear and rebuild menu cache, too?

A site has a monthly event list, event.january.html, etc, for the naming convention. The current month needs to be linked at event.html. Right now it's done with Global Redirect module and must be updated manually. I can set up a cron, no problem there.

What is the best practice method to automatically updated a primary menu link, or update the Global Redirect?

Read more
LindsayC's picture

AdSense Custom Channels & Drupal

I have a Drupal 6.17 site with a wide range of categories - everything from auto to relationships. I keep getting notices from google adsense that if I create custom channels, I can increase my revenue by attracting more targeted advertising. I have created custom channels insofar as they allow me the ability to track ads on different parts of the page - but not by category (auto, beauty, relationships, etc).

Read more
joyseeker's picture

GIT on a windows laptop?

I know most of you are Mac people, but I have a Windows laptop. Does anyone have GIT up locally on your Windows laptop/computer? Are you using WAMP server? I would love some guidance on how to get GIT up and running on mine.

Read more
JayVGee's picture

What is the best way to manage a VPS Server?

What have you found the best way to manage a VPS server? Do you do it yourself, have your client do it, or contract out?

Read more
Subscribe with RSS Syndicate content