function bueditor_plus_allowed_fields in BUEditor Plus 7
Same name and namespace in other branches
- 7.2 bueditor_plus.module \bueditor_plus_allowed_fields()
 
The field types that can have profiles attached.
Return value
array An array containing the allowed field types.
2 calls to bueditor_plus_allowed_fields()
- bueditor_plus_form_field_ui_field_edit_form_alter in ./
bueditor_plus.module  - Implements hook_form_FORM_ID_alter() for field_ui_field_edit_form().
 - bueditor_plus_process_format in ./
bueditor_plus.module  - Checks for any bueditor_plus profiles that should be attached and adds the JavaScript settings to implement the format profile.
 
File
- ./
bueditor_plus.module, line 126  - Overrides default BUEditor textarea settling and implements controls based upon text formats.
 
Code
function bueditor_plus_allowed_fields() {
  $cache =& drupal_static(__FUNCTION__, NULL);
  if (!$cache) {
    $cache = array(
      'text_textarea_with_summary',
      'text_textarea',
    );
    // Allow other modules to add in allowed fields to enable bueditor on.
    drupal_alter('bueditor_plus_allowed_fields', $cache);
  }
  return $cache;
}