Druppets 1.0 - Drupal Snippets Set for Aptana

UPD 21.08.11: Thanks to my readers, I found old sources of this project and put them on GitHub, feel free to use them. Links are at the end of this post.

I should have done this earler, but I found time to do this only now. I have a set of mostly used snippets of Drupal 6 code which helps me a lot during my Drupal development. It's not so big, but most of snippets are really handy. So I decided to share this set with you and gave it a funny name Druppets :)

Please welcome, Druppets 1.0:

Druppets is a set of commonly used snippets of Drupal 6 Code. This set should help with some common and repetitive coding tasks.
The first version of druppets is available for Aptana IDE only (www.aptana.com). It may work with Eclipse based IDEs also,
but I never tested this. Works ok with Aptana 1.5 on PC. Should be ok with Linux/Mac also.

Requirements:
1) Aptana IDE installed. Preferrably version 1.5+
2) Drupal 6

Release notes:
Druppets 1.0 has the following snippets divided into 4 categories:
1) Form API:
Check Boxes
Date
Fieldset
File Upload
Hidden
Item
Markup
Password
Password with Confirmation
Radio Buttons
Select
Submit
TextArea
TextField
Value
Weight

2) Func
drupal_add_css
drupal_add_js (inline)
drupal_add_js (file)
Form + Submit Functions
Form + Validation + Submit Functions
Output in Table
Pager
variable_get
variable_set

3) HTML Ready
$base_url;
global $base_url;

4) SQL
COUNT
db_query('DELETE')
db_query('INSERT')
db_query('SELECT') and fetch
db_query('SELECT') single and fetch
db_query('UPDATE')

Further development

If people will find this set useful I will continue to maintain it and will add more snippets. Feel free to make suggestions here in comments or contact me directly:

Links

Comments

Submitted by Thomas on Thu, 08/06/2009 - 00:41

hey! This is amazing stuff! Thank you very much. Snippets are great, will send my additions soon.

Submitted by ashley on Thu, 08/06/2009 - 14:43

very very useful, thanks for sharing this!

Submitted by Tom on Thu, 09/24/2009 - 15:13

Fine, really amazing

Submitted by Gijs on Tue, 09/29/2009 - 09:24

Hello,

Thanks for the snippets. Really nice, saves me allot of time.

In your readme.txt you write "Restart Aptana."
A project refresh is enough to get the snippets in the snippets view.

Submitted by blairski on Fri, 12/04/2009 - 17:56

this is really cool. It works in Eclipse too (with the Aptana plugin installed). Could we make this a community thing were others add to the snippets?

Submitted by Tim on Thu, 12/17/2009 - 20:27

Hello blairsky!

Thanks! Of course we can do this. But I have no idea how to accomplish this. Do you have some thoughts? Contact me: http://timonweb.com/about

Submitted by Nielsz on Thu, 12/17/2009 - 21:52

Great stuff!

One issue:
the "Form + Submit" contains a validate function, and the "Form + Validation + Submit" doesn't.

Submitted by Stas on Tue, 04/27/2010 - 15:38

I suggest to try free PHP IDE - Codelobster PHP Edition with special Drupal plug-in.

Submitted by azul on Sat, 08/21/2010 - 04:20

Hi, thanks for creating drupal plugin/extension for aptana.
Is it compatible with Aptana 2.0 ?

Submitted by Tim on Mon, 08/23/2010 - 13:37

Heya! I think it should work just fine. Follow install instructions in readme.txt. However, I never tested it with Aptana 2.0 because I switched to Komodo since that time.

Submitted by Greg on Thu, 02/24/2011 - 16:46

Apparently the code has been moved? Getting 404 when I try to download....

Submitted by j0k3 on Fri, 05/27/2011 - 14:21

Plz, where a can donwload the druppets, apparently this link don't work, plz plz

Submitted by Fidelix on Fri, 05/27/2011 - 14:44

Please, can we have the snippets again?

Add new comment

You are here