Commit efab73ed authored by dragonwize's avatar dragonwize
Browse files

Added #404618 by dragonwize, cursor: Panels comment support

parent a97f37b4
...@@ -11,8 +11,9 @@ Features ...@@ -11,8 +11,9 @@ Features
* Set selection fieldset title. * Set selection fieldset title.
* Set default formats for nodes and comments separately. * Set default formats for nodes and comments separately.
* Works with CCK textareas. * Works with CCK textareas.
* Panels comment support
* and more. * and more.
------------------------------------------------------------------- -------------------------------------------------------------------
Installation: Installation:
...@@ -26,40 +27,39 @@ Simple 4-step usage: ...@@ -26,40 +27,39 @@ Simple 4-step usage:
1. Go to user permissions (/admin/user/permissions) and set your permissions. 1. Go to user permissions (/admin/user/permissions) and set your permissions.
2. Navigate to Site Configuration > Input formats (/admin/settings/filters) 2. Navigate to Site Configuration > Input formats (/admin/settings/filters)
3. There you will find 2 tabs where you can change your settings. 3. There you will find 2 tabs where you can change your settings.
Defaults (/admin/settings/filters/defauts) Defaults (/admin/settings/filters/defauts)
Settings (/admin/settings/filters/settings) Settings (/admin/settings/filters/settings)
4. If you enable the "Control formats per node type" option. Go to your content 4. If you enable the "Control formats per node type" option. Go to your content
type admin page to set those settings (example /admin/content/node-type/page). type admin page to set those settings (example /admin/content/node-type/page).
The settings are under the Input format settings fieldset. The settings are under the Input format settings fieldset.
------------------------------------------------------------------- -------------------------------------------------------------------
Extended usage and notes: Extended usage and notes:
* The default format will only be set on NEW nodes and comments. The format * The default format will only be set on NEW nodes and comments. The format
selected when the form is submitted is used for future editing purposes. selected when the form is submitted is used for future editing purposes.
* The module is designed to always fall back to default settings when needed. * The module is designed to always fall back to default settings when needed.
This means that when you enable the module before you change any settings, This means that when you enable the module before you change any settings,
it will use your current Drupal settings. Also when you enable conrol per node it will use your current Drupal settings. Also when you enable conrol per node
type it will use your global settings until you save the content type with new type it will use your global settings until you save the content type with new
settings. settings.
* The permissions "collapse format fieldset by default" and * The permissions "collapse format fieldset by default" and
"collapsible format selection" will only work if "Show format selection" is "collapsible format selection" will only work if "Show format selection" is
also given. This is because those 2 perms only have an effect when there is also given. This is because those 2 perms only have an effect when there is
a format selection. a format selection.
* The permission "collapse format fieldset by default" will only work if * The permission "collapse format fieldset by default" will only work if
"collapsible format selection" is also given. This is because the "collapsible format selection" is also given. This is because the
fieldset can only be collapsed by default if it is collapsible. fieldset can only be collapsed by default if it is collapsible.
* If you dis-allow a format that is already being used by content, the module * If you dis-allow a format that is already being used by content, the module
will do its best to set the correct format. The precidence of the formats are: will do its best to set the correct format. The precidence of the formats are:
1. Existing format selected when last saved 1. Existing format selected when last saved
2. Content type default format 2. Content type default format
3. Global default format 3. Global default format
4. First allowed format 4. First allowed format
5. Drupal core site default format 5. Drupal core site default format
\ No newline at end of file
...@@ -98,6 +98,7 @@ function better_formats_form_alter(&$form, $form_state, $form_id) { ...@@ -98,6 +98,7 @@ function better_formats_form_alter(&$form, $form_state, $form_id) {
// is always 'node-form'. // is always 'node-form'.
switch ($form['#id']) { switch ($form['#id']) {
case 'comment-form': case 'comment-form':
case 'panels-comment-form':
better_formats_set_comment_format($form); better_formats_set_comment_format($form);
break; break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment