@@ 694-702 (lines=9) @@ | ||
691 | ||
692 | //// |
|
693 | // Get list of address_format_id's |
|
694 | function tep_get_address_formats() { |
|
695 | $address_format_query = tep_db_query("select address_format_id from " . TABLE_ADDRESS_FORMAT . " order by address_format_id"); |
|
696 | $address_format_array = array(); |
|
697 | while ($address_format_values = tep_db_fetch_array($address_format_query)) { |
|
698 | $address_format_array[] = array('id' => $address_format_values['address_format_id'], |
|
699 | 'text' => $address_format_values['address_format_id']); |
|
700 | } |
|
701 | return $address_format_array; |
|
702 | } |
|
703 | ||
704 | //// |
|
705 | // Alias function for Store configuration values in the Administration Tool |
@@ 556-565 (lines=10) @@ | ||
553 | return $categories_array; |
|
554 | } |
|
555 | ||
556 | function tep_get_manufacturers($manufacturers_array = '') { |
|
557 | if (!is_array($manufacturers_array)) $manufacturers_array = array(); |
|
558 | ||
559 | $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); |
|
560 | while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { |
|
561 | $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); |
|
562 | } |
|
563 | ||
564 | return $manufacturers_array; |
|
565 | } |
|
566 | ||
567 | //// |
|
568 | // Return all subcategory IDs |