You are here

function views_ui_help in Views (for Drupal 7) 5

Same name and namespace in other branches
  1. 6.3 views_ui.module \views_ui_help()
  2. 6.2 views_ui.module \views_ui_help()
  3. 7.3 views_ui.module \views_ui_help()

File

./views_ui.module, line 9

Code

function views_ui_help($section) {
  switch ($section) {
    case 'admin/help#views_ui':
      return _views_ui_help_add();
    case 'admin/build/views/import':
      return t('You may import a view by cut-and-pasting the results of an export view. If the import is successful you will be taken to the Add View page with all of the settings of the imported view..');
    case 'admin/build/views':
      return t('This screen shows all of the views that are currently defined in your system. The default views are provided by Views and other modules and are automatically available. If a customized view of the same name exists, it will be used in place of a default view.');
  }
  if (!strncmp($section, 'admin/build/views', 11)) {
    switch (arg(2)) {
      case 'add':
      case 'edit':
        return t('Please see !s or the views documentation on drupal.org for help here.', array(
          '!s' => l(t('the views help page'), 'admin/help/views_ui'),
        ));
      case 'export':
        return t('You may cut & paste this view into an import function on another system. The view will only work if all modules required by the view are installed on the target location.');
    }
  }
}