diff --git a/core/includes/theme.inc b/core/includes/theme.inc index d68963e..1caebfa 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1691,7 +1691,7 @@ function theme_links($variables) { } /** - * Builds a render array for theme_dropbutton. + * Builds a render array for theme_dropbutton(). */ function template_preprocess_dropbutton(&$variables) { $variables['attributes']['class'][] = 'dropbutton'; @@ -1716,21 +1716,15 @@ function template_preprocess_dropbutton(&$variables) { } /** - * Create a dropbutton menu. - * - * @param $title - * The text to place in the clickable area to activate the dropbutton. This - * text is indented to -9999px by default. - * @param $links - * A list of links to provide within the dropbutton, suitable for use - * in via Drupal's theme('links'). - * @param $image - * If true, the dropbutton link is an image and will not get extra decorations - * that a text dropbutton link will. - * @param $class - * An optional class to add to the dropbutton's container div to allow you - * to style a single dropbutton however you like without interfering with - * other dropbuttons. + * Creates a dropbutton menu. + * + * @param array $variables + * An associative array containing: + * - title: (optional) The text placed in the clickable area to activate the + * dropbutton. Defaults to 'Open dropbutton'. + * - links: An array of links to provide in the dropbutton. + * - attributes: (optional) An associative array of HTML attributes to apply + * to the dropbutton. */ function theme_dropbutton($variables) { return render($variables['element']);