You are here

function _insert_string_to_array in Insert 7

Element validation callback.

1 string reference to '_insert_string_to_array'
insert_admin in ./insert.module
Creates the global module configuration form.

File

./insert.module, line 103
Allows insertion of files, images, and other media directly into the body field by using an "Insert" button next to the uploaded file.

Code

function _insert_string_to_array(array $element, array &$form_state, array $form) {
  $value = str_replace(',', ' ', strtolower(trim($element['#value'])));
  $form_state['values'][$element['#name']] = preg_split('/\\s+/', $value);
}