User login

Drupal Development

Adding a custom submit handler to a form with a CCK field?

I was thinking maybe a CCK field to tell a form what Salesforce lead "Source" categorization a form should have ought to be able to do double duty as the indicator that "this form should be sent to Salesforce as a lead."

However, that would require a CCK field to be able to add a submit handler that applies to the entire form it is added to, and I'm not sure they can do that.

Salesforce module difficulty logging in to Salesforce.com from Drupal

Hello,

I am working for a current Salesforce commercial client and we are integrating Salesforce with a new Drupal web site. For both their account and my developer account, authentication fails using the e-mail and password. I know that Salesforce protects against unauthorized access by IP-based whitelists, and I am wondering if this is the problem.

We have not received e-mails at either account noting a failed login, and am wondering if there is a place in the admin interface that I have missed and can enable the web site.

Agaric Wants to automatically set Node: Published filter for new Views

Every view should be filtered by the node being published by default. It should probably sort by sticky first and then created descending too. Most of your views are going to want these, so why not set them this way automatically?

How could this be done with a helper module? I don't think form_alter will do it for us (given all the AJAX used on the add view form), but I hope I'm wrong.

Only lead we have is Creating views programmatically and the rest of the Views 1 API documentation, and it looks... complicated.

Using Drush to install or update to a particular tagged release of a module

Drush love continues. First, we use Drush's command line help to answer our every question. It follows the format drush help command.

ben@server:/sites/ignitecleanenergy/www/sites/all/modules$ drush/drush.php help pm install

Usage: drush [options] pm install ...
is the short name of a project hosted on drupal.org,
or the short name and the version number (Drupal major version is optional).
e.g. project, project-5.x-1.0, project-1.0, project-1.x-dev, project-1.1-rc1
So far, only modules are supported.

How Drupal 5's Administration Theme functionality works

Drupal's administration theme functionality works very simply: if the first argument of the internal path is admin, the custom theme is set to the admin theme.

This suggests that the $custom_theme variable can be set by modules to change to any arbitrary theme, and it will override the default theme.

The setting of custom_theme to admin_theme is done in system module's implementation of hook_menu:

Drupal Code Search

When using the interface to Google's mirror of Drupal and contributed module code that was set up by John Forsythe at Drupal Code Search, do not filter by code language type, or valid results will be inexplicably lost.

Put edit block links on blocks for easy use by administrators

UPDATE: The Zen Theme does this so, so much better, so we'll be stealing from it as soon as we get the chance.

Provide edit links to block and view blocks for admin users by modifying block template files in your theme.

This is very rudimentary but works for the most common blocks. I'm sure it can be generalized to work for all blocks no matter what module defines them.

Create edit-block.tpl.php

Contributing

if you spend a day creating a Drupal site, spend one hour on reviewing patches related to the functionality you just touched be it contrib or core.

So says chx.

Resolution

On the value of automatic messages that gather data to define themselves

So you don't look as silly as this:

[Error message] Files with the extension mp4 are not allowed. Please upload a file with an extension from the following list: avi mpg ogg wmv mov. [/Error message]

Please use the form below to upload your video to LivingConversations. This site accepts many file formats, including .avi, .mpg, .mp4, .wmv, mov, and .flv, but files must not exceed 100 MB.

Syndicate content