You are here

function views_ui_admin_export_page in Views (for Drupal 7) 5

1 string reference to 'views_ui_admin_export_page'
views_ui_add_menu_items in ./views_ui.module

File

./views_ui.module, line 452

Code

function views_ui_admin_export_page($vid = '') {
  views_load_cache();
  $code = views_create_view_code($vid);
  $lines = substr_count($code, "\n");
  $form['code'] = array(
    '#type' => 'textarea',
    '#title' => $view->name,
    '#default_value' => $code,
    '#rows' => $lines,
  );
  return $form;
}