<?php
/**
 * Contao Open Source CMS
 * Copyright (C) 2005-2010 Leo Feyer
 *
 * Formerly known as TYPOlight Open Source CMS.
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at <http://www.gnu.org/licenses/>.
 *
 * PHP version 5
 * @copyright  2010 by e@sy Solutions IT <http://www.easySolutionsIT.de/>
 * @author     Patrick Froch <patrick.froch@easySolutionsIT.de/>
 * @package    Language
 * @license    LGPL
 * @filesource
 */


/**
 * global perations
 */
$GLOBALS['TL_DCA']['tl_user']['list']['global_operations']['resetAll'] = array(
    'label'               => &$GLOBALS['TL_LANG']['tl_user']['resetAll'],
    'href'                => 'key=resetAll',
    'class'               => 'header_resetAll',
    'attributes'          => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
);


/**
 * operations
 */
$GLOBALS['TL_DCA']['tl_user']['list']['operations']['reset'] = array(
    'label'             => &$GLOBALS['TL_LANG']['tl_user']['reset'],
    'href'              => 'key=reset',
    'icon'              => 'system/modules/es_resetpassword/html/reset.png',
    'button_callback'   => array('resetPass', 'makeIcon')
);

?>