You are here

function ultimenu_element_validate_skins in Ultimenu 7

Validate skins directory.

1 string reference to 'ultimenu_element_validate_skins'
ultimenu_admin_settings in includes/ultimenu.admin.inc
Menu callback for 'admin/structure/ultimenu'.

File

includes/ultimenu.admin.inc, line 125
The setting for Ultimenu.

Code

function ultimenu_element_validate_skins($element, &$form_state, $form) {
  if (!empty($element['#value']) && !is_dir($element['#value'])) {
    form_set_error($element['#name'], t('<strong>@skins</strong> do not exists. Please create the directory first.', array(
      '@skins' => $element['#value'],
    )));
  }
}