function views_plugin_display_block_path::has_path in Views Hacks 6
Same name and namespace in other branches
- 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
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;
}