function views_plugin_display::option_link in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 plugins/views_plugin_display.inc \views_plugin_display::option_link()
- 7.3 plugins/views_plugin_display.inc \views_plugin_display::option_link()
Because forms may be split up into sections, this provides an easy URL to exactly the right section. Don't override this.
1 call to views_plugin_display::option_link()
- views_plugin_display::options_form in plugins/
views_plugin_display.inc - Provide the default form for setting options.
File
- plugins/
views_plugin_display.inc, line 975 - Contains the base display plugin.
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
function option_link($text, $section, $class = '', $title = '') {
if (!empty($class)) {
$text = '<span>' . $text . '</span>';
}
if (!trim($text)) {
$text = t('Broken field');
}
if (empty($title)) {
$title = $text;
}
return l($text, 'admin/build/views/nojs/display/' . $this->view->name . '/' . $this->display->id . '/' . $section, array(
'attributes' => array(
'class' => 'views-ajax-link ' . $class,
'title' => $title,
),
'html' => TRUE,
));
}