variables in Drupal that are globally accessible.

learn more… | top users | synonyms

0
votes
2answers
249 views

D7 - Custom PHP processing page

I have a PHP page already written specifically for users to be directed to (sort of like a referrer link, and carries querystring values) from external sites. This page is not intended to have any ...
0
votes
2answers
104 views

Can I use the $user global variable for security purposes?

I am developping a module which allows users to modify information about themselves using a form. I want to make sure no user is able to modify the informations about another user. To do this, I ...
1
vote
2answers
4k views

How Do i Create Combined Search Filters In Views?

lets say I am currently working on a view that allows me to search "title" of a content type along with 3 other exposed filters. but now i want users to not only be able to search "title" but also ...
4
votes
2answers
3k views

Global variable, visible only inside the module

I have several modules, that implement very close functionality. And the SQL requests are almost the same, except for the table name. So I wanted to create a global variable, inside each module: ...
0
votes
2answers
44 views

How do you access custom user information added from: Configuration » People » Account settings

I'm looking to create a script that pulls some of this information, but I need to know how to call it. For example one of the 'machine names' for one field is field_first_name how could I call this? ...
1
vote
2answers
401 views

Global $user object isn't always “Fully Loaded”

I have a Drupal 6 module that implements hook_user() to add a custom property on op='load'; mymodule_user($op, &$edit, &$account, $category = NULL) { $account->external_id = ...
5
votes
2answers
2k views

D7: Dealing with absolute paths while on localhost

I have a long-term path problem while developping modules for drupal. For instance I have the following project path while locally: http://localhost:8888/mylocalproject while on the production ...
4
votes
2answers
6k views

Where do I declare a global variable?

I need to define a global variable. Where should I define it? I will not use the global variable in template files I should not use settings.php I will only use the global variable in all the ...