Tinymce apperance code to exclude the webform textarea's

Posted by: 
Dominique De Cooman

Should be used on every site containing the webform module.

if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'edit') { 
  $type = db_result(db_query("SELECT type FROM {node} WHERE nid = %d",arg(1))); 
  if ($type == 'webform') { 
    return false; 
  } 
  else {   
    return true; 
  } 
} 
if (arg(0) == 'user' || arg(0) == 'comment') { 
  return true; 
} 
return false;

Add new comment

Who are you?


By knowing who you are you will be directed to a page where we have displayed all our drupal services relevant to your professional identity.