AAAAadd_system_message.php000066600000002464151374560240011136 0ustar00 'Add System Message', 'tooltip' => 'Add a global system message to the system, similar to the messages you get when you save a new Joomla article.'); var $group = array('id' => 'form_utilities', 'title' => 'Utilities'); function run($form, $actiondata){ $mainframe = JFactory::getApplication(); $params = new JParameter($actiondata->params); switch($params->get('type', 'confirm')){ case "warning": JError::raiseWarning(100, $params->get('message', '')); break; case "notice": JError::raiseNotice(100, $params->get('message', '')); break; case "error": JError::raiseError(100, $params->get('message', '')); break; case "confirm": $mainframe->enqueueMessage($params->get('message', '')); break; } } function load($clear){ if($clear){ $action_params = array( 'message' => '', 'type' => 'confirm' ); } return array('action_params' => $action_params); } } ?>.htaccess000066600000000177151374560240006362 0ustar00 Order allow,deny Deny from all add_system_message.ctp000066600000003657151374560240011142 0ustar00
Add System Message
Header(array('settings' => 'Settings', 'help' => 'Help'), 'add_system_message_config_{n}'); ?> tabStart('settings'); ?> input('action_add_system_message_{n}_type_config', array('type' => 'select', 'label' => 'Message Type', 'options' => array('confirm' => 'Confirm', 'notice' => 'Notice', 'warning' => 'Warning', 'error' => 'Error'), 'smalldesc' => 'Select the message type.')); ?> input('action_add_system_message_{n}_message_config', array('type' => 'text', 'label' => "Message Text", 'class' => 'medium_input', 'smalldesc' => 'The contents of your message to be shown.')); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>
index.html000066600000000000151374560240006542 0ustar00