You are here

function views_plugin_display_block_path::has_path in Views Hacks 6

Same name and namespace in other branches
  1. 7 views_display_block_path/views_plugin_display_block_path.inc \views_plugin_display_block_path::has_path()

File

views_display_block_path/views_plugin_display_block_path.inc, line 74

Class

views_plugin_display_block_path

Code

function has_path() {

  // avoid interfering with the admin forms.
  if (arg(0) == 'admin' && arg(1) == 'build' && arg(2) == 'views') {
    return FALSE;
  }

  // set the path explicitly when Views reads it from the options.
  $this
    ->set_option('path', $this
    ->get_path());
  return TRUE;
}