array('handle' => NULL, 'content' => NULL, 'collapsed' => FALSE), 'file' => 'includes/collapsible.theme.inc', ); $items['ctools_collapsible_remembered'] = array( 'arguments' => array('id' => NULL, 'handle' => NULL, 'content' => NULL, 'collapsed' => FALSE), 'file' => 'includes/collapsible.theme.inc', ); } /** * Render a collapsible div. * * @param $handle * Text to put in the handle/title area of the div. * @param $content * Text to put in the content area of the div, this is what will get * collapsed * @param $collapsed = FALSE * If true, this div will start out collapsed. */ function theme_ctools_collapsible($handle, $content, $collapsed = FALSE) { ctools_add_js('collapsible-div'); ctools_add_css('collapsible-div'); $class = $collapsed ? ' ctools-collapsed' : ''; $output = '
'; $output .= '
' . $handle . '
'; $output .= '
' . $content . '
'; $output .= '
'; return $output; } /** * Render a collapsible div whose state will be remembered. * * @param $id * The CSS id of the container. This is required. * @param $handle * Text to put in the handle/title area of the div. * @param $content * Text to put in the content area of the div, this is what will get * collapsed * @param $collapsed = FALSE * If true, this div will start out collapsed. */ function theme_ctools_collapsible_remembered($id, $handle, $content, $collapsed = FALSE) { ctools_add_js('collapsible-div'); ctools_add_css('collapsible-div'); $class = $collapsed ? ' ctools-collapsed' : ''; $output = '
'; $output .= '
' . $handle . '
'; $output .= '
' . $content . '
'; $output .= '
'; return $output; }