You are here

function beautytips_manager_delete_style_page in BeautyTips 7.2

Page callback for style deletion form.

1 string reference to 'beautytips_manager_delete_style_page'
beautytips_manager_menu in ./beautytips_manager.module
Implements hook_menu().

File

./beautytips_manager.admin.inc, line 514
Administration pages and forms for beautytips manager.

Code

function beautytips_manager_delete_style_page($id) {
  $style = beautytips_manager_get_custom_style($id);
  if ($style->name == variable_get('beautytips_default_style', 'plain')) {
    return t('You cannot delete this style because is set as the default style.  You may change this <a href="@link">here</a>.', [
      '@link' => '/admin/config/user-interface/beautytips',
    ]);
  }
  return drupal_get_form('beautytips_manager_delete_style_confirm_form', $id);
}