@@ 184-193 (lines=10) @@ | ||
181 | return true; |
|
182 | } |
|
183 | ||
184 | static function sort_requires_connection_last( $module1, $module2 ) { |
|
185 | if ( $module1['requires_connection'] == $module2['requires_connection'] ) |
|
186 | return 0; |
|
187 | if ( $module1['requires_connection'] ) |
|
188 | return 1; |
|
189 | if ( $module2['requires_connection'] ) |
|
190 | return -1; |
|
191 | ||
192 | return 0; |
|
193 | } |
|
194 | ||
195 | function get_columns() { |
|
196 | $columns = array( |
@@ 70-80 (lines=11) @@ | ||
67 | add_action( 'jetpack_unrecognized_action', array( $this, 'handle_unrecognized_action' ) ); |
|
68 | } |
|
69 | ||
70 | static function sort_requires_connection_last( $module1, $module2 ) { |
|
71 | if ( $module1['requires_connection'] == $module2['requires_connection'] ) { |
|
72 | return 0; |
|
73 | } elseif ( $module1['requires_connection'] ) { |
|
74 | return 1; |
|
75 | } elseif ( $module2['requires_connection'] ) { |
|
76 | return -1; |
|
77 | } |
|
78 | ||
79 | return 0; |
|
80 | } |
|
81 | ||
82 | // Produce JS understandable objects of modules containing information for |
|
83 | // presentation like description, name, configuration url, etc. |