示例#1
0
文件: View.php 项目: pounard/yamm
 /**
  * (non-PHPdoc)
  * @see Yamm_Entity::_update()
  */
 protected function _update($object, $identifier)
 {
     // TODO we should check for all dependencies which are not data, such as
     // handlers and modules (this is done by views_export module).
     views_include('view');
     // Should give us the '$view' variable
     eval($object);
     $view->save();
     views_ui_cache_set($view);
     menu_rebuild();
     cache_clear_all('*', 'cache_views');
     cache_clear_all();
 }
示例#2
0
 function list_render(&$form_state)
 {
     views_include('admin');
     views_ui_add_admin_css();
     if (empty($_REQUEST['js'])) {
         views_ui_check_advanced_help();
     }
     drupal_add_library('system', 'jquery.bbq');
     views_add_js('views-list');
     $this->active = $form_state['values']['order'];
     $this->order = $form_state['values']['sort'];
     $query = tablesort_get_query_parameters();
     $header = array($this->tablesort_link(t('View name'), 'name', 'views-ui-name'), array('data' => t('Description'), 'class' => array('views-ui-description')), $this->tablesort_link(t('Tag'), 'tag', 'views-ui-tag'), $this->tablesort_link(t('Path'), 'path', 'views-ui-path'), array('data' => t('Operations'), 'class' => array('views-ui-operations')));
     $table = array('header' => $header, 'rows' => $this->rows, 'empty' => t('No views match the search criteria.'), 'attributes' => array('id' => 'ctools-export-ui-list-items'));
     return theme('table', $table);
 }