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

9f1608
#!/bin/bash
9f1608
#
9f1608
# html_getActions.sh -- This function initializes HTML string
9f1608
# manipulation functionalities, using the option value of
9f1608
# centos-art.sh script as reference.
9f1608
#
9f1608
# Copyright (C) 2009-2010 Alain Reguera Delgado
9f1608
# 
9f1608
# This program is free software; you can redistribute it and/or modify
9f1608
# it under the terms of the GNU General Public License as published by
9f1608
# the Free Software Foundation; either version 2 of the License, or
9f1608
# (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
9f1608
    # Evaluate option name and define which actions does centos-art.sh
9f1608
    # script supports.
9f1608
    case $OPTIONNAM in
9f1608
ffdd74
        '--update-headings' )
9f1608
            # Update html headings to create table of content.
9f1608
            html_updateHeadings
9f1608
            ;;
9f1608
ffdd74
        * )
ffdd74
            cli_printMessage "`eval_gettext "The option provided is not valid."`"
ffdd74
            ;;
ffdd74
9f1608
    esac
9f1608
    
9f1608
}