} // Add new author type $add_author_type = Input::Get('add_author', 'string', null); if ($add_author_type !== null) { $authorTypeObj = new AuthorType(); if ($authorTypeObj->create($add_author_type) === true) { camp_html_add_msg($translator->trans('Author type added.', array(), 'users'), 'ok'); } else { camp_html_add_msg($translator->trans('Cannot add author type, this type already exists.', array(), 'users')); } } // Delete author type $del_id_type = Input::Get('del_id_type', 'int', -1); if ($del_id_type > -1) { $authorTypeObj = new AuthorType($del_id_type); if ($authorTypeObj->delete()) { camp_html_add_msg($translator->trans('Author type removed.', array(), 'users'), 'ok'); } else { camp_html_add_msg($translator->trans('Cannot remove author type.', array(), 'users')); } } // Delete author alias $del_id_alias = Input::Get('del_id_alias', 'int', -1); if ($del_id_alias > -1) { $authorAliasObj = new AuthorAlias($del_id_alias); if ($authorAliasObj->delete()) { camp_html_add_msg($translator->trans('Author alias removed.', array(), 'users'), 'ok'); } else { camp_html_add_msg($translator->trans('Cannot remove author alias.', array(), 'users')); } }