$name, 'description' => $description, 'handler' => $handler, 'alias' => $alias, 'module_settings' => json_encode($settings), 'enabled' => 1 ]); // install something module-specific call_user_func([$handler, 'install']); return $module; } }