/[drupal]/contributions/modules/iedestroyer/iedestroyer.module
ViewVC logotype

Diff of /contributions/modules/iedestroyer/iedestroyer.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6.2.18, Tue Jun 17 14:45:54 2008 UTC revision 1.6.2.19, Tue Jun 17 14:58:22 2008 UTC
# Line 11  define('IEDESTROYER_PERSISTENCE_FORCE', Line 11  define('IEDESTROYER_PERSISTENCE_FORCE',
11    
12  /**  /**
13   * Implementation of hook_help().   * Implementation of hook_help().
  *  
  * @return string  
14   */   */
15  function iedestroyer_help($section) {  function iedestroyer_help($section) {
16    switch ($section) {    switch ($section) {
# Line 31  function iedestroyer_help($section) { Line 29  function iedestroyer_help($section) {
29    
30  /**  /**
31   * Implementation of hook_perm()   * Implementation of hook_perm()
  *  
  * @return array Array containing the permissions this module provides  
32   */   */
33  function iedestroyer_perm() {  function iedestroyer_perm() {
34    return array('administer iedestroyer', 'view iedestroyer');    return array('administer iedestroyer', 'view iedestroyer');
# Line 106  function iedestroyer_browser_load() { Line 102  function iedestroyer_browser_load() {
102  }  }
103    
104  /**  /**
105  * Admin configuration page   * Admin configuration page
106  */   *
107     * @return array A Drupal form
108     */
109  function iedestroyer_admin() {  function iedestroyer_admin() {
110    $form = array();    $form = array();
111    
# Line 235  function iedestroyer_admin() { Line 233  function iedestroyer_admin() {
233  /**  /**
234   * Returns list of languages supported on this site   * Returns list of languages supported on this site
235   *   *
236   * @return array   * @return array All enabled languages, structured like the result of locale_supported_languages().
237   */   */
238  function iedestroyer_supported_languages() {  function iedestroyer_supported_languages() {
239    if (module_exists('locale')) {    if (module_exists('locale')) {
# Line 265  function iedestroyer_view_block() { Line 263  function iedestroyer_view_block() {
263  }  }
264    
265  /**  /**
266   * Render IE Destroyer   * View IE Destroyer
267     *
268     * @param $severity constant IEDESTROYER_SEVERITY_BAR or IEDESTROYER_SEVERITY_BLOCK
269     *
270     * @return string
271   */   */
272  function iedestroyer_view($severity) {  function iedestroyer_view($severity) {
273    if (_iedestroyer_should_display_page() == TRUE && $severity == variable_get('iedestroyer_severity', IEDESTROYER_SEVERITY_DISABLED)) {    if (_iedestroyer_should_display_page() == TRUE && $severity == variable_get('iedestroyer_severity', IEDESTROYER_SEVERITY_DISABLED)) {
# Line 408  function _iedestroyer_should_display_pag Line 410  function _iedestroyer_should_display_pag
410  /**  /**
411   * The default message to present to the user   * The default message to present to the user
412   *   *
413     * @param $type constant IEDESTROYER_SEVERITY_BAR or IEDESTROYER_SEVERITY_BLOCK, depending
414     * on whether to return the message for the IE Destroyer bar or the block
415     *
416   * @return string   * @return string
417   */   */
418  function _iedestroyer_default_message($type) {  function _iedestroyer_default_message($type) {

Legend:
Removed from v.1.6.2.18  
changed lines
  Added in v.1.6.2.19

  ViewVC Help
Powered by ViewVC 1.1.2