You are here

function beautytips_ui_admin_settings in BeautyTips 8

Same name and namespace in other branches
  1. 6.2 beautytips_ui.module \beautytips_ui_admin_settings()
  2. 7.2 beautytips_ui.module \beautytips_ui_admin_settings()

@file Adds includes to Beautytips settings page and provides some built in functionality. TODO: hook_theme invoke - maybe Invoked include hooks: admin_info, menu_change, theme_change, form_change, menu_items ex beautytips_textinput_info.

1 call to beautytips_ui_admin_settings()
BeautytipsConfigForm::buildForm in src/Form/BeautytipsConfigForm.php
Form constructor.

File

beautytips_ui/beautytips_ui.module, line 10
Adds includes to Beautytips settings page and provides some built in functionality. TODO: hook_theme invoke - maybe Invoked include hooks: admin_info, menu_change, theme_change, form_change, menu_items ex beautytips_textinput_info.

Code

function beautytips_ui_admin_settings(&$form) {
  $items = beautytips_ui_include_invoke('beautytips', 'admin_info', []);
  if (is_array($items)) {
    foreach ($items as $form_item) {
      if (count($form_item)) {
        $keys = array_keys($form_item);
        if (count($keys)) {
          foreach ($keys as $menu_item) {
            $form[$menu_item] = $form_item[$menu_item];
          }
        }
      }
    }
  }
}