Skip to content

Instantly share code, notes, and snippets.

@gl2748
Created December 16, 2015 01:14
Show Gist options
  • Save gl2748/955a9a5c560fc3d69b84 to your computer and use it in GitHub Desktop.
Save gl2748/955a9a5c560fc3d69b84 to your computer and use it in GitHub Desktop.
drush eval understanding...
drush eval 'foreach (views_get_all_views() as $view) { foreach ($view->display as $display => $data) { print "$view->name: $display\n"; }; }'
drush ev "print_r(array_keys(node_type_get_types()));"
iainm@iainm-e7450:~/rr001/robbreport/docroot$ drush ev "print_r(views_get_all_views());"
Array
(
[nodequeue_2] => view Object
(
[db_table] => views_view
[base_table] => node
[base_field] => nid
[name] => nodequeue_2
[vid] => 1
[description] => Display a list of all nodes in queue 'Home Left Column'
[tag] => nodequeue
[human_name] => Home Left Column
[core] => 0
[api_version] =>
[disabled] => 1
[built] =>
[executed] =>
[editing] =>
[args] => Array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment