Triggering drupal for facebook login button from link?

Hi people! Does anyone knows how i could trigger the drupal for facebook login button from link?

I am currently using this on the footer block:

$login_example = "";
print l(t('Login for more options..'), $login_example, array('external' => TRUE));

However i would like to trigger the facebook connect button of drupal for facebook instead of redirecting to the login node?


Taking conditional action based on page arguments

I hope someone here can help me, as I've been reading documentation and asking on irc for 3 days now, with no success.

Let me first outline the problem:

I have a page at I would like this url to accept an optional argument, and if this supplied argument == 1, I would like to remove a user from a role and still display the contents of content/test

So, to reiterate, if user123 visits content/test, I would like to display the content normally. If user123 visits content/test/1 then I would like to take some behind-the-scenes actions, maybe output a status message with drupal_set_message() and then display the content from content/test.

So, here's the code that I've got.

function test_menu() {
$items = array();

$items['content/test'] = array(
'page callback' => 'test_popup',
'page arguments' => array(0),
'access arguments' => array('access content'),

$items['content/test/%'] = array(
'page callback' => 'test_callback',
'page arguments' => array(2),
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,

return $items;

function test_callback($arg) {
if($arg == 1) {
//obviously this is just so I know what is going on

drupal user-end cache

Hi again...

Way to revalidate user-end cache once per day? I just migrated static web page to drupal. So every user who enters uses cache/cookies from the old structure...

in other words i need smth like this...

Header("Cache-Control: must-revalidate");
$offset = 60 * 60 * 24 * 3;
$ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";

... but i guess there's an implemented way to do this...

thanks in advance...

p.s. sorry for my bad english...

Drupal 7 LDAP sync

Hello there,

i've been searching for the synchronization feature in drupal 7 but still i can't find a way of doing it......

is it a feature which will ever be implemented?

Can Drupal cache ignore certain $_GET params?

As I understand it, adding any query to the end of a url will bust Drupal cached pages. Eg

The problem is, when our newsletters go out to jillion people, they add parameters to the URLs for tracking and such. So, no cached pages and significant jump in server/database load.

Has anyone else had to address this? Is there a way to make the cache ignore certain queries, thus serving up the cached version?

Working with drush like a (windows) client to a remote drupal (linux server)

Drupal 7 and Drush 5

I try to get drush working as a client (on my windows 7 PC) to manage a remote Linux server where i get drupal 7 installed.

Basic question -- still i could see anything on that :
do i need to install drush as well on the server ?


Subscribe with RSS Subscribe to RSS - Drupal 7.x