variables['bulkcontent']) ) { $gCms->variables['bulkcontent'] = array(); } $bulk = $gCms->variables['bulkcontent']; $name = $module.'::'.$name; $bulk[$name] = $label; $gCms->variables['bulkcontent'] = $bulk; return TRUE; } /** * Gets a list of the registered bulk operations. * * @param boolean $separate_modules Split out the actions from various modules * with a horizontal line. * @return array The list of operations */ static public function get_operation_list($separate_modules = true) { $gCms = cmsms(); if( !isset($gCms->variables['bulkcontent']) ) { return FALSE; } $tmpc = array(); $tmpm = array(); foreach( $gCms->variables['bulkcontent'] as $name => $label ) { if( startswith($name,'core::') ) { $tmpc[$name] = $label; } else { $tmpm[$name] = $label; } } if( $separate_modules && count($tmpm) ) { $tmpc[-1] = '----------'; } $tmpc = array_merge($tmpc,$tmpm); return $tmpc; } } // end of class # vim:ts=4 sw=4 noet ?>