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