You are here

public function MenuBeanType::values in Menu Bean 7

Define the form values and their defaults

Be sure to call combine the results form the parent::values() with yours

Overrides BeanPlugin::values

File

plugins/MenuBeanType.class.php, line 4

Class

MenuBeanType

Code

public function values() {
  $settings = menu_bean_get_settings();
  $values = array(
    'menu_name' => 'main-menu',
  );
  foreach ($settings as $key => $info) {
    $values = array_merge_recursive($values, $info['default_values']);
  }
  return $values + parent::values();
}