Update name of custom field tab in contacts.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 27 Jun 2018 14:48:08 +0000 (10:48 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 27 Jun 2018 14:48:08 +0000 (10:48 -0400)
For contact use 'Directory Info'.

setup/adminHooks.php

index 599ce85..3825bd6 100644 (file)
@@ -89,7 +89,8 @@ add_filter( 'glm-members-customfields-data', function( $content, $uid, $id ){
  * Filter to Return a tab link for multi-page sub-tabs.
  */
 add_filter( 'glm-member-db-custom-fields-nav', function( $content, $tableName ){
-    $out .= '<a id="glm-custom-fields" data-show-table="glm-table-custom-fields" class="glm-'.$tableName .'-tab nav-tab">Custom Fields</a>';
+    $tabLabel = ( $tableName == 'contact-info' ) ? 'Directory Info' : 'Custom Fields';
+    $out .= '<a id="glm-custom-fields" data-show-table="glm-table-custom-fields" class="glm-' . $tableName . '-tab nav-tab">' . $tabLabel . '</a>';
     return $out;
 },10,2);