Onfire60


Member since 08/29/2009

7 snippets

2060 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

Onfire60's Recent Snippets



« Prev 1 Next »
Found This Code to make a stats page view for a client. Make Sure your header input format is PHP.
0 848 posted 13 years ago by Onfire60
This code goes directly into your template.php file after you remove the open and close PHP tags at the beginning and end. Then place the call below in your block.tpl.php. Don't forget to flush cache.
0 936 posted 13 years ago by Onfire60
Copy the first code snippet to your theme's template.php. Then call the following section in you block template file.
0 804 posted 13 years ago by Onfire60
Used the first sql statement to find your menu item. (Replace menu-% with the name of your menu eg. "primary-links" . Then using the menu item id fix the items you want to regain the good old delete button on the menu item.
0 1053 posted 14 years ago by Onfire60
When adding a link to a form say for instance a login form you can use drupal_get_destination() to return the user to the page they were on when they finish loging in. This show you how to do this programatically in a link l(); function.
0 802 posted 14 years ago by Onfire60
Was trying to figure out a way to remove tabs for a content type where it was unnecessary. Place this in your theme template.php file and configure to your needs. Example Usage: Organic Group View is created and page uses a menu tab. Unfortunately...
0 848 posted 14 years ago by Onfire60
« Prev 1 Next »