Last active
August 29, 2015 14:10
-
-
Save fiedsch/9aaad75e36da6242b896 to your computer and use it in GitHub Desktop.
search all Contao Hooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Alle Hooks aus Contao suchen | |
#WEBROOT=/your/web/root/directory | |
WEBROOT=/Users/andreas/Sites | |
# ROOT Verzeichnis einer Contao Installation | |
TL_ROOT=$WEBROOT/contao3.2 | |
hooks=$(grep -R "foreach (\$GLOBALS\['TL_HOOKS'\]" $TL_ROOT | cut -d"'" -f4 | sort | uniq) | |
for hook in $hooks | |
do | |
echo "HOOK $hook found in" | |
grep -Rl "\['$hook'\]" $TL_ROOT | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment