Commit b96e7a68 authored by James Glasgow's avatar James Glasgow
Browse files

Issue #1428734 by jrglasgow: Fatal error: Unsupported operand types in...

Issue #1428734 by jrglasgow: Fatal error: Unsupported operand types in ...includes/theme.inc on line 980.
parent 193fb4e6
Loading
Loading
Loading
Loading
+1 −1
Changes for autologout.admin.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ function autologout_admin_settings() {
  );
  $form['autologout']['markup1'] = array(
    '#type'  => 'markup',
    '#value' => theme('autologout_generic', 1),
    '#value' => t('Set-up your site policy by role:-'),
  );
  $form['autologout']['enabled'] = array(
    '#type' => 'checkbox',
+0 −39
Changes for autologout.module: 0 added lines, 39 removed lines.
Original line number Diff line number Diff line
@@ -594,45 +594,6 @@ function _autologout_local_settings($name = FALSE) {
/* }}} */


/* {{{ autologout_theme() */
/**
 * Implementation of hook_theme().
 */
function autologout_theme($existing, $type, $theme, $path) {

  $themes = array(
    'autologout_generic' => array(
      'variables' => array('arg' => 0)
    )
  );

  return $themes;
}
/* }}} */


/**
 * theme_autologout_generic()
 *
 * A general theme function used when HTML is being inserted into
 * a text string. Allows themers the oppertunity to alter html the
 * module may want to output to suit their site/theme.
 *
 * @param integer $arg
 *  A constant defining what string to return.
 * @return string
 *   The actual string.
 */
function theme_autologout_generic($variables) {

  switch ($variables['arg']) {
    case 0:
      return '<br/><b>'. t('Set-up your site policy by role:-') .'</b>';
    default:
      return '';
  }
}

/* {{{ _autologout_debug() */
function _autologout_debug($s) {
  if (defined("AUTOLOGOUT_DEBUG") && AUTOLOGOUT_DEBUG) {