You are here

function tvi_display_options_ahah in Taxonomy Views Integrator 6

Returns html option set of available displays for view with specified view id

Related topics

1 string reference to 'tvi_display_options_ahah'
tvi_menu in ./tvi.module
Implements hook_menu().

File

includes/tvi.admin.inc, line 17
TVI Administration Interface

Code

function tvi_display_options_ahah() {
  $view_name = $_GET['view_name'];
  $options = '';
  if (strlen($view_name) > 0) {
    foreach (tvi_get_view_displays($view_name) as $name => $label) {
      $options .= "<option value='{$name}'>{$label}</option>";
    }
  }
  print $options;
  exit;
}