@@ 2479-2484 (lines=6) @@ | ||
2476 | $mod['module_tags'] = array( self::translate_module_tag( 'Other' ) ); |
|
2477 | } |
|
2478 | ||
2479 | if ( $mod['plan_classes'] ) { |
|
2480 | $mod['plan_classes'] = explode( ',', $mod['plan_classes'] ); |
|
2481 | $mod['plan_classes'] = array_map( 'strtolower', array_map( 'trim', $mod['plan_classes'] ) ); |
|
2482 | } else { |
|
2483 | $mod['plan_classes'] = array( 'free' ); |
|
2484 | } |
|
2485 | ||
2486 | if ( $mod['feature'] ) { |
|
2487 | $mod['feature'] = explode( ',', $mod['feature'] ); |
|
@@ 2486-2491 (lines=6) @@ | ||
2483 | $mod['plan_classes'] = array( 'free' ); |
|
2484 | } |
|
2485 | ||
2486 | if ( $mod['feature'] ) { |
|
2487 | $mod['feature'] = explode( ',', $mod['feature'] ); |
|
2488 | $mod['feature'] = array_map( 'trim', $mod['feature'] ); |
|
2489 | } else { |
|
2490 | $mod['feature'] = array( self::translate_module_tag( 'Other' ) ); |
|
2491 | } |
|
2492 | ||
2493 | /** |
|
2494 | * Filters the feature array on a module. |