Using drupal_get_form to pass variables to a form

I have read that it is possible to use drupal_get_form to pass variable data into a form. The form I have created uses the following method:

function hook_menu () {
$items ['path'] = array (
'title' => 'Title',
'description' => 'Description',
'page_callback' => 'drupal_get_form',
'page_arguments' => array('form_name'),
'access_callback' = TRUE,
);
}

SA-CONTRIB-2011-028 - Simple Clean - Cross Site Scripting

  • Advisory ID: DRUPAL-SA-CONTRIB-2011-028
  • Project: Simple Clean (third-party module)
  • Version: 7.x
  • Date: 2011-July-06
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Cross Site Scripting

well I forget how manually: "rebuild the theme registry"

I apply a ZEN sub theme... I went to some more advanced changes to override tpl.php files: changed page.tpl.php >>> page--node--review.tpl.php ... well I forget how manually: "rebuild the theme registry" can you suggest how? I did not saw any link normally see...

Best Geolocation option for D7?

Hello,

I've been using Geolocation and drupal6 for quite some time (although I don't consider myself an expert at all), first using Location+GMAP, after (with better results) using OL+OL Geocoder. I was quite happy with the coice, since it covered my needs pretty well. But nows it comes Drupal7 and my problems start. Although there's a D7 version of OpenLayers, there isn't of other useful companion modules like openlayers geocoder or Openlayers CCK widget. And the worst is that not only there won't be any D7 version of those modules (see here) but it seems that "OpenLayers CCK has been popular but it's architecturally weak and CCK is not a very good API to build anything serious upon." according to tmcw's words here, who in turn announced that DevelpmentSeed will no longer continue working on drupal and thus, OpenLayers and all related modules. Not only that, he added that "The OpenLayers project seemed like the only option at the time, but it isn't, and it isn't the best option either. OpenLayers is a massive codebase that has gone far too long between rewrites (as in, it has never had one). It makes configuration an unnecessary nightmare, one that the module goes to lengths to patch together.". And that scared me. It scared me specially because I am not a developer and I have to rely on what experts say, which sometimes is contradictory.

Then I read that location module, which was somewhat forgotten seems to be working again and now what seemed to be a bad approach seems to be a better one (better than wkt fields?). Additionally new modules appeared, such as Gelocation which seems to promising but lacks quite a lot of features that OL CCK Widget had (whether its architecture is better or not I do not know). And it confused me. Even more.

Drupal 7 Custom Blocks not staying in regions

I am in the process of converting my 6.x theme to 7.x. Its mostly working but for some reason Custom Blocks will not go into the regions they are meant for. They just flloat to the top right.... Any ideas?

To see what I mean here are the sites im using to test on:

The-techhead.com - 6.x
The-techhead.com/drupal7 - 7.2
The-techhead.com/drupal74 - 7.4

I am about to go nuts! Just when I thought I was getting somewhere this craziness happens and it only with custom blocks. Every regular block adheres to the regions

Upload tif using image API

Is there any way to upload a .tif file using the image field?

Ultimately I need to be able to create a thumbnail of this tiff as well. I have both Imagemagick, Imagecache, and Imagemagick Raw installed. Been doing quite a bit of research on this but still haven't found an easy solution. I'm using D7 which I figured would have tif support.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x