Skip to content

Instantly share code, notes, and snippets.

@manifestuk
manifestuk / Find EE Extension Hooks
Created January 14, 2012 01:15
Output a list of every extension hook for a given ExpressionEngine installation
# Description:
# A couple of useful bash one-liners for finding all of the extension hooks in
# a given ExpressionEngine installation. Here's what it does:
#
# 1. Finds all of the native hooks, and any third-party hooks;
# 2. Sorts them alphabetically;
# 3. Outputs them to STDOUT or a file of your choosing.
#
# Usage:
# CD to the `/system/expressionengine/` directory of your site, and run
#!/bin/bash
# Copyright (c) 2010 hearSAY, LLC @ http://gohearsay.com
# Author: Kevin Smith
#
# This script is meant to be installed in the web root directory
# and run immediately after an EE2 deployment. As long as it's
# installed in the web root, it can be executed from any working
# directory.
# VERY IMPORTANT: If you are running under a suPHP environment