Blame Scripts/Bash/Functions/Html/html_getActions.sh

9f1608
#!/bin/bash
9f1608
#
9f1608
# html_getActions.sh -- This function initializes HTML string
79e7c6
# manipulation functionalities, using the action value of
9f1608
# centos-art.sh script as reference.
9f1608
#
7cd8e9
# Copyright (C) 2009, 2010 Alain Reguera Delgado
9f1608
# 
7cd8e9
# This program is free software; you can redistribute it and/or
7cd8e9
# modify it under the terms of the GNU General Public License as
7cd8e9
# published by the Free Software Foundation; either version 2 of the
7cd8e9
# License, or (at your option) any later version.
9f1608
# 
9f1608
# This program is distributed in the hope that it will be useful, but
9f1608
# WITHOUT ANY WARRANTY; without even the implied warranty of
9f1608
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9f1608
# General Public License for more details.
9f1608
#
9f1608
# You should have received a copy of the GNU General Public License
9f1608
# along with this program; if not, write to the Free Software
9f1608
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
9f1608
# USA.
9f1608
# 
9f1608
# ----------------------------------------------------------------------
9f1608
# $Id$
9f1608
# ----------------------------------------------------------------------
9f1608
    
9f1608
function html_getActions {
9f1608
79e7c6
    # Evaluate action name and define which actions does centos-art.sh
9f1608
    # script supports.
46d906
    case $ACTIONNAM in
9f1608
ffdd74
        '--update-headings' )
9f1608
            # Update html headings to create table of content.
9f1608
            html_updateHeadings
9f1608
            ;;
9f1608
ffdd74
        * )
79e7c6
            cli_printMessage "`gettext "The option provided is not valid."`" 'AsErrorLine'
ffdd74
            ;;
ffdd74
9f1608
    esac
9f1608
    
9f1608
}