drupal

Setting options in a Views display.

Published by Matthew Davidson on Thu, 04/10/2012 - 11:40am in
<?php
$view = views_get_view('viewname');
$view->set_display('displayname');
$view->display_handler->set_option('title', 'My New Title');
$view->save();

Awesome.

Monday, 11 June 2012 - 6:32pm

Published by Matthew Davidson on Mon, 11/06/2012 - 6:32pm in

The absence of this makes me cry.