You are here

function _insert_block_settings in Insert Block 7

Settings callback for the insert block filter.

1 string reference to '_insert_block_settings'
insert_block_filter_info in ./insert_block.module
Implementation of hook_filter_info().

File

./insert_block.module, line 84
Insert blocks into the body of a node

Code

function _insert_block_settings($form, &$form_state, $filter, $format, $defaults) {
  $filter->settings += $defaults;
  $settings['check_roles'] = array(
    '#type' => 'checkbox',
    '#title' => t('Check the roles assigned by the Block module'),
    '#default_value' => $filter->settings['check_roles'],
    '#description' => t('Without this checked, anyone can see inserted blocks.'),
  );
  return $settings;
}