$value) { if (!empty($value)) { $new_array[$key] = $value; } } return $new_array; } // Declare API compatibility on behalf of core modules: /** * Implementation of hook_skinr_api(). * * This one is used as the base to reduce errors when updating. */ function skinr_skinr_api() { return array( 'api' => 1, 'path' => drupal_get_path('module', 'skinr') .'/modules', ); } function block_skinr_api() { return skinr_skinr_api(); } function comment_skinr_api() { return skinr_skinr_api(); } function node_skinr_api() { return skinr_skinr_api(); } function panels_skinr_api() { return skinr_skinr_api(); } function views_skinr_api() { return skinr_skinr_api(); }