You are here

function views_ui_admin_tools in Views (for Drupal 7) 5

Same name and namespace in other branches
  1. 6.3 includes/admin.inc \views_ui_admin_tools()
  2. 6.2 includes/admin.inc \views_ui_admin_tools()
1 string reference to 'views_ui_admin_tools'
views_ui_menu in ./views_ui.module

File

./views_ui.module, line 330

Code

function views_ui_admin_tools() {
  $form['markup'] = array(
    '#value' => t('<p>Occasionally, something or other can cause the Views cache to contain stale data; this is particularly true after module updates and sometimes true after taxonomy and profile updates. If you are having problems with Views creating malformed queries, the first thing you should always do is clear the Views cache to see if that is the problem.</p>'),
  );
  $form['clear'] = array(
    '#type' => 'submit',
    '#value' => t('Clear views cache'),
  );
  return $form;
}