Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 2193

One of the most important entities Drupal uses is the user entity.

1
vote
I've had some cases where clean url-s aren't working in offline mode. You should be able to log in using '?q=user' instead.
answered May 7 '12 by Madis
8
votes
One option would be to do it via the GUI (admin/people) where you can select all the shown users with the uppermost checkbox and then under 'update options' add the role you want. If it's a one time … thing for ~300 users then this is probably the quickest way to handle it. For a programmatic approach the user_multiple_role_edit() function can be used. You need to pass the user id-s as an array …
answered May 1 '12 by Madis
2
votes
the code is going into page--front.tpl.php then remove the first and last line. Basic HTML, CSS knowledge would probably be necessary with this approach though. You can add fields for users on the … 'admin/config/people/accounts/fields' page or select Configuration -> Account settings then the manage fields tab. These can be set to appear on user registration and users can edit them later with their other profile information. …
answered Mar 2 '12 by Madis
1
vote
Besides writing custom database queries you might be able to use functions listed on the Menu API page. For example menu_load_links() loads all the links of the specified menu. menu_link_load() can be …
answered May 8 '12 by Madis
4
votes
Unset the destination before calling drupal_goto(): unset($_GET['destination']); drupal_goto('PATH/TO/SSO-SERVER-LOGIN-PAGE.ASPX', array('external' => TRUE)); Another option would be to code the re …
answered Aug 17 '12 by Madis
2
votes
Inserting data directly into Drupal tables is generally a bad idea (until you are familiar enough with the database schema to know what you're doing). For programmatically inserting users there are … to use the following code instead (copied from user_save() function): $account->uid = db_next_id(db_query('SELECT MAX(uid) FROM {users}')->fetchField()); I'm not familiar with the Migrate module so …
answered Mar 15 '12 by Madis