3
モジュールから関数をオーバーライドするにはどうすればよいですか?
まず、この回答が他の場所でカバーされている場合は、申し訳ありません。私はたくさんの検索を行ってきましたが、テーマの関数とフックのオーバーリングに関する情報しか見つけることができません。 Drupal Commerceアイテムの価格表を作成するモジュールを使用しています。テーブルヘッダーをフォーマットする関数があります。 /** * Helper function that takes care of the quantity displayed in the headers of * the price table. */ function commerce_price_table_display_quantity_headers($item) { // Set the quantity text to unlimited if it's -1. $max_qty = $item['max_qty'] == -1 ? t('Unlimited') : $item['max_qty']; // If max and min …