Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add hook_enable and hook_disable

  • Loading branch information...
commit 239d5fffa672ab3ba6bd9efed66580a744e2fc38 1 parent 9f6d5d3
@webflo webflo authored
View
26 Commands/hook_disable.tmCommand
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env php
+&lt;?php
+require $_SERVER['TM_BUNDLE_SUPPORT'] . '/bootstrap.php';
+include textmate_find_command('hook_disable');
+</string>
+ <key>input</key>
+ <string>none</string>
+ <key>name</key>
+ <string>hook_disable</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>scope</key>
+ <string>source.php</string>
+ <key>tabTrigger</key>
+ <string>hook_disable</string>
+ <key>uuid</key>
+ <string>82946B57-67EA-4A53-A3F8-5610CB07A070</string>
+</dict>
+</plist>
View
26 Commands/hook_enable.tmCommand
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env php
+&lt;?php
+require $_SERVER['TM_BUNDLE_SUPPORT'] . '/bootstrap.php';
+include textmate_find_command('hook_enable');
+</string>
+ <key>input</key>
+ <string>none</string>
+ <key>name</key>
+ <string>hook_enable</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>scope</key>
+ <string>source.php</string>
+ <key>tabTrigger</key>
+ <string>hook_enable</string>
+ <key>uuid</key>
+ <string>E693B62D-7D95-4611-A1FE-2BB3312852F4</string>
+</dict>
+</plist>
View
8 Support/commands/hooks/hook_disable.php
@@ -0,0 +1,8 @@
+/**
+ * Implementation of hook_disable().
+ */
+function ${1:<?php print $basename; ?>}_disable() {
+ ${2:// Code goes here.}
+}
+
+$3
View
8 Support/commands/hooks/hook_enable.php
@@ -0,0 +1,8 @@
+/**
+ * Implementation of hook_enable().
+ */
+function ${1:<?php print $basename; ?>}_enable() {
+ ${2:// Code goes here.}
+}
+
+$3
Please sign in to comment.
Something went wrong with that request. Please try again.