isValid()) { echo elgg_view('object/plugin/invalid', $vars); } else { echo elgg_view('object/plugin/full', $vars); } }