@@ 2529-2534 (lines=6) @@ | ||
2526 | $mod['module_tags'] = array( self::translate_module_tag( 'Other' ) ); |
|
2527 | } |
|
2528 | ||
2529 | if ( $mod['plan_classes'] ) { |
|
2530 | $mod['plan_classes'] = explode( ',', $mod['plan_classes'] ); |
|
2531 | $mod['plan_classes'] = array_map( 'strtolower', array_map( 'trim', $mod['plan_classes'] ) ); |
|
2532 | } else { |
|
2533 | $mod['plan_classes'] = array( 'free' ); |
|
2534 | } |
|
2535 | ||
2536 | if ( $mod['feature'] ) { |
|
2537 | $mod['feature'] = explode( ',', $mod['feature'] ); |
|
@@ 2536-2541 (lines=6) @@ | ||
2533 | $mod['plan_classes'] = array( 'free' ); |
|
2534 | } |
|
2535 | ||
2536 | if ( $mod['feature'] ) { |
|
2537 | $mod['feature'] = explode( ',', $mod['feature'] ); |
|
2538 | $mod['feature'] = array_map( 'trim', $mod['feature'] ); |
|
2539 | } else { |
|
2540 | $mod['feature'] = array( self::translate_module_tag( 'Other' ) ); |
|
2541 | } |
|
2542 | ||
2543 | /** |
|
2544 | * Filters the feature array on a module. |