Last active
August 29, 2015 14:11
-
-
Save jonhattan/5384246f05cbb114dd65 to your computer and use it in GitHub Desktop.
Sql to obtain views using php. #drupal
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
;; Select views using php | |
SELECT vd.vid, name, id FROM views_display vd LEFT JOIN views_view vv ON vd.vid=vv.vid WHERE display_options LIKE '%php%'; | |
;; View php snippets | |
mysql DBNAME -e "SELECT vd.vid, name, id, display_options FROM views_display vd LEFT JOIN views_view vv ON vd.vid=vv.vid WHERE display_options LIKE '%php%' \G" | less |
marcoscano
commented
May 3, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment