diff --git a/module_filter.admin.inc b/module_filter.admin.inc index 11aa1b9..82b8f29 100644 --- a/module_filter.admin.inc +++ b/module_filter.admin.inc @@ -94,6 +94,12 @@ function module_filter_settings() { '#description' => t('When enabled, the description will be expanded by default.'), '#default_value' => variable_get('module_filter_expanded_description', 0), ); + $form['tabs']['module_filter_links_dropdown'] = array( + '#type' => 'checkbox', + '#title' => t('Display links as a dropdown'), + '#description' => t('When enabled, the Help/Permissions/Configure links will displayed as a dropdown if multiple options exist.'), + '#default_value' => variable_get('module_filter_links_dropdown', 1), + ); $form['update'] = array( '#type' => 'fieldset', diff --git a/module_filter.theme.inc b/module_filter.theme.inc index 89d9014..6331812 100644 --- a/module_filter.theme.inc +++ b/module_filter.theme.inc @@ -125,7 +125,7 @@ function theme_module_filter_system_modules_tabs($variables) { } $row[] = array('data' => '
' . $description . '
', 'class' => array('description')); - $operations = (module_exists('ctools')) ? theme('module_filter_operations', array('links' => $module['links'], 'dropbutton' => TRUE)) : theme('module_filter_operations', array('links' => $module['links'])); + $operations = (module_exists('ctools')) ? theme('module_filter_operations', array('links' => $module['links'], 'dropbutton' => variable_get('module_filter_links_dropdown', TRUE))) : theme('module_filter_operations', array('links' => $module['links'])); $row[] = array('data' => '', 'class' => array('links')); $class = array(module_filter_get_id($package) . '-tab', 'module', $stripe);